diff options
author | kris <kris@FreeBSD.org> | 2004-10-08 01:59:18 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2004-10-08 01:59:18 +0800 |
commit | 9a24e2a75b660ff32f63ff6947b365c3229a3c7d (patch) | |
tree | d5ac82b9ffb81f234a63c1884753eb26bb07c3c5 /Mk | |
parent | 3d1f2a2fe8c8d24e1d56e0bd3515a31a336aa637 (diff) | |
download | freebsd-ports-gnome-9a24e2a75b660ff32f63ff6947b365c3229a3c7d.tar.gz freebsd-ports-gnome-9a24e2a75b660ff32f63ff6947b365c3229a3c7d.tar.zst freebsd-ports-gnome-9a24e2a75b660ff32f63ff6947b365c3229a3c7d.zip |
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
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 2 |
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) |