summaryrefslogtreecommitdiffstats
path: root/lib/libkse/Makefile
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2006-03-13 00:59:51 +0000
committerdeischen <deischen@FreeBSD.org>2006-03-13 00:59:51 +0000
commitcc69a08fbfbd64dd13ebb80b18cc83824a3c8781 (patch)
tree0ff38bc0c45640883ff06a668902f099c9ff8641 /lib/libkse/Makefile
parent11cbb2f2752487f0605f14afcc37e520331c8dbc (diff)
downloadFreeBSD-src-cc69a08fbfbd64dd13ebb80b18cc83824a3c8781.zip
FreeBSD-src-cc69a08fbfbd64dd13ebb80b18cc83824a3c8781.tar.gz
Add compatibility symbol maps. libpthread (.so.1 and .so.2)
used LIBTHREAD_1_0 as its version definition, but now needs to define its symbols in the same namespace used by libc. The compatibility hooks allows you to use libraries and binaries built and linked to libpthread before libc was built with symbol versioning. The shims can be removed if libpthread is given a version bump. Reviewed by: davidxu
Diffstat (limited to 'lib/libkse/Makefile')
-rw-r--r--lib/libkse/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libkse/Makefile b/lib/libkse/Makefile
index aaa055f..ccb8493 100644
--- a/lib/libkse/Makefile
+++ b/lib/libkse/Makefile
@@ -31,10 +31,13 @@ CFLAGS+=-D_LOCK_DEBUG
# however it is no longer strictly conformed to POSIX
# CFLAGS+=-DSYSTEM_SCOPE_ONLY
-LDFLAGS= -Wl,--version-script=${.CURDIR}/pthread.map
+LDFLAGS= -Wl,--version-script=${.CURDIR}/pthread.map -Wl,-zmuldefs
# enable extra internal consistancy checks
CFLAGS+=-D_PTHREADS_INVARIANTS -Wall
+.if defined(SYMVER_ENABLED)
+CFLAGS+=-DSYMBOL_VERSIONING
+.endif
PRECIOUSLIB=
OpenPOWER on IntegriCloud