summaryrefslogtreecommitdiffstats
path: root/lib/liblzma/Makefile
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2010-05-14 20:40:37 +0000
committerdelphij <delphij@FreeBSD.org>2010-05-14 20:40:37 +0000
commit957781bce73dec430cfe80d6e7ba48eb91361805 (patch)
tree47d8d0e72ce9eca8c018c13816529f46560edc9f /lib/liblzma/Makefile
parentafce67ea65ab28a7ff9f93e7ce629d826b31d643 (diff)
downloadFreeBSD-src-957781bce73dec430cfe80d6e7ba48eb91361805.zip
FreeBSD-src-957781bce73dec430cfe80d6e7ba48eb91361805.tar.gz
- Add versioned symbols to liblzma
- Use default SHLIB_MAJOR. Approved by: mm X-MFC with: lzma library MFC
Diffstat (limited to 'lib/liblzma/Makefile')
-rw-r--r--lib/liblzma/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/liblzma/Makefile b/lib/liblzma/Makefile
index b68244f..f84ac93 100644
--- a/lib/liblzma/Makefile
+++ b/lib/liblzma/Makefile
@@ -1,7 +1,6 @@
# $FreeBSD$
-LIB= lzma
-SHLIB_MAJOR= 0
+LIB= lzma
LZMADIR= ${.CURDIR}/../../contrib/xz/src/liblzma
.PATH: ${LZMADIR}/../common
@@ -122,6 +121,7 @@ SRCS+= simple_coder.c \
WARNS?= 3
CFLAGS+= -DHAVE_CONFIG_H \
+ -DTUKLIB_SYMBOL_PREFIX=lzma_ \
-I${.CURDIR} \
-I${LZMADIR}/api \
-I${LZMADIR}/common \
@@ -134,4 +134,8 @@ CFLAGS+= -DHAVE_CONFIG_H \
-I${LZMADIR}/simple \
-I${LZMADIR}/../common
+VERSION_DEF= ${.CURDIR}/Versions.def
+SYMBOL_MAPS= ${.CURDIR}/Symbol.map
+CFLAGS+= -DSYMBOL_VERSIONING
+
.include <bsd.lib.mk>
OpenPOWER on IntegriCloud