diff options
author | kris <kris@FreeBSD.org> | 2004-10-07 17:59:18 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2004-10-07 17:59:18 +0000 |
commit | 9a24e2a75b660ff32f63ff6947b365c3229a3c7d (patch) | |
tree | d5ac82b9ffb81f234a63c1884753eb26bb07c3c5 | |
parent | 3d1f2a2fe8c8d24e1d56e0bd3515a31a336aa637 (diff) | |
download | FreeBSD-ports-9a24e2a75b660ff32f63ff6947b365c3229a3c7d.zip FreeBSD-ports-9a24e2a75b660ff32f63ff6947b365c3229a3c7d.tar.gz |
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
-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 803d85e..c63174a 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) |