summaryrefslogtreecommitdiff
path: root/sysutils/coreutils
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-07-20 17:59:14 +0000
committermarino <marino@pkgsrc.org>2012-07-20 17:59:14 +0000
commit4c71108bf107cc91966e1fe376adfb92629c5d79 (patch)
treeb763eb6fc09c674a03cb98f2b6973d60d9c23ccf /sysutils/coreutils
parent6bb9cba340275585b38a4a437bc9eff5dc792455 (diff)
downloadpkgsrc-4c71108bf107cc91966e1fe376adfb92629c5d79.tar.gz
sysutils/coreutils: Fix pthread link
The configure script incorrectly detects that libpthread is part of libc on DragonFly, likely due to the use of weak symbols there. For DragonFly only, Cache the variable that tells it to include -pthread while linking.
Diffstat (limited to 'sysutils/coreutils')
-rw-r--r--sysutils/coreutils/Makefile.common6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysutils/coreutils/Makefile.common b/sysutils/coreutils/Makefile.common
index abbe03b1ab7..58ab9b7430e 100644
--- a/sysutils/coreutils/Makefile.common
+++ b/sysutils/coreutils/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.4 2012/05/29 18:14:13 cheusov Exp $
+# $NetBSD: Makefile.common,v 1.5 2012/07/20 17:59:14 marino Exp $
# used by sysutils/coreutils/Makefile
# used by misc/gnuls/Makefile
@@ -29,6 +29,10 @@ TEST_TARGET= check
CONFIGURE_ENV+= ac_list_mounted_fs=found
.endif
+.if ${OPSYS} == "DragonFly"
+CONFIGURE_ENV+= gl_cv_search_pthread_join=-lpthread
+.endif
+
.if !empty(MACHINE_PLATFORM:MDarwin-[9].*-*)
CONFIGURE_ENV+= ac_cv_header_sys_acl_h=no jm_cv_func_svid_putenv=yes
.endif