summaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2004-10-07 17:59:18 +0000
committerKris Kennaway <kris@FreeBSD.org>2004-10-07 17:59:18 +0000
commitff63c67768c4b5c505931b90a040267c791ed9e6 (patch)
treecb4509ba36ff93a28cbe30d74c2868d0f0058538 /Mk
parentMake fetchable again. (diff)
Change the default value of PTHREAD_LIBS to -pthread for 5.x and
beyond. This avoids linking shared libraries with the thread library, which causes problems when trying to change from one thread library to another. Instead all binaries that link to a library that uses threads must themselves respect PTHREAD_LIBS. Submitted by: deischen, marcus Approved by: portmgr
Notes
Notes: svn path=/head/; revision=118578
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 803d85ea9f55..c63174abbcac 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1687,7 +1687,7 @@ PTHREAD_CFLAGS?= -D_THREAD_SAFE
PTHREAD_LIBS?= -lc_r
.else
PTHREAD_CFLAGS?=
-PTHREAD_LIBS?= -lpthread
+PTHREAD_LIBS?= -pthread
.endif
.if exists(/usr/bin/fetch)