summaryrefslogtreecommitdiff
path: root/share/mk/bsd.lib.mk
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-12-29 14:44:06 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-12-29 14:44:06 +0000
commit0e445c2cd7492f8f8a98ede32580997aa9e35444 (patch)
tree1f532262eed537182b6a24058ec2a0a97e4d4e7e /share/mk/bsd.lib.mk
parent27d769b10596160f3f3429d22d81913c4d193470 (diff)
allows a shared library version to be set using LIBname_VERSION=major.minor
This overrides the major/minor contents of an shlib_version. Useful for overriding version numbers in ports. after discussion with bernd@, millert@, deraadt@
Diffstat (limited to 'share/mk/bsd.lib.mk')
-rw-r--r--share/mk/bsd.lib.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
index 2dd6a7641cb..402b4b2b8fc 100644
--- a/share/mk/bsd.lib.mk
+++ b/share/mk/bsd.lib.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.lib.mk,v 1.51 2005/12/16 19:45:19 kettenis Exp $
+# $OpenBSD: bsd.lib.mk,v 1.52 2005/12/29 14:44:05 espie Exp $
# $NetBSD: bsd.lib.mk,v 1.67 1996/01/17 20:39:26 mycroft Exp $
# @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91
@@ -10,9 +10,14 @@
.if exists(${.CURDIR}/shlib_version)
.include "${.CURDIR}/shlib_version"
+.if defined(LIB) && defined(LIB$(LIB)_VERSION)
+SHLIB_MAJOR=$(LIB$(LIB)_VERSION:R)
+SHLIB_MINOR=$(LIB$(LIB)_VERSION:E)
+.else
SHLIB_MAJOR=${major}
SHLIB_MINOR=${minor}
.endif
+.endif
.MAIN: all