summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2006-03-16 15:17:47 +0000
committerdeischen <deischen@FreeBSD.org>2006-03-16 15:17:47 +0000
commit1b17c00bdec4a56aa86d606b7eac9cb08e86ce88 (patch)
tree527817000b6c5d217282c87a5f876a72aa6671e4 /lib/libpthread
parentcb9cc95c77198e502e3efcc710c904dfdc7ec9cf (diff)
downloadFreeBSD-src-1b17c00bdec4a56aa86d606b7eac9cb08e86ce88.zip
FreeBSD-src-1b17c00bdec4a56aa86d606b7eac9cb08e86ce88.tar.gz
Suuply the name of the version map and let bsd.lib.mk supply
the link arguments.
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libpthread/Makefile b/lib/libpthread/Makefile
index ccb8493..a30bccb 100644
--- a/lib/libpthread/Makefile
+++ b/lib/libpthread/Makefile
@@ -31,11 +31,15 @@ CFLAGS+=-D_LOCK_DEBUG
# however it is no longer strictly conformed to POSIX
# CFLAGS+=-DSYSTEM_SCOPE_ONLY
-LDFLAGS= -Wl,--version-script=${.CURDIR}/pthread.map -Wl,-zmuldefs
-
-# enable extra internal consistancy checks
+# Enable extra internal consistancy checks.
CFLAGS+=-D_PTHREADS_INVARIANTS -Wall
+
+VERSION_MAP=${.CURDIR}/pthread.map
+
.if defined(SYMVER_ENABLED)
+# Remove this if library version is bumped and LIBPTHREAD_1_0
+# compatability hacks are removed (see thread/thr_private.h).
+LDFLAGS+=-Wl,-zmuldefs
CFLAGS+=-DSYMBOL_VERSIONING
.endif
OpenPOWER on IntegriCloud