summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-11-26 08:26:51 +0000
committerjlam <jlam@pkgsrc.org>2004-11-26 08:26:51 +0000
commit1720458109165e28266523028112501b18c5d5a2 (patch)
tree2b48eafe042461f369d01d14bb3586e3b09ae476 /mk
parent2855b1b22a2e76d04c99d61fb029413cedac7d48 (diff)
downloadpkgsrc-1720458109165e28266523028112501b18c5d5a2.tar.gz
Don't auto-add -ldl to LIBS since most GNU configure scripts already
check for this condition.
Diffstat (limited to 'mk')
-rw-r--r--mk/dlopen.builtin.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/dlopen.builtin.mk b/mk/dlopen.builtin.mk
index 9b9478c45d3..9cd8e7a9423 100644
--- a/mk/dlopen.builtin.mk
+++ b/mk/dlopen.builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: dlopen.builtin.mk,v 1.2 2004/11/26 08:15:25 jlam Exp $
+# $NetBSD: dlopen.builtin.mk,v 1.3 2004/11/26 08:26:51 jlam Exp $
.for _lib_ in dl
. if !defined(_BLNK_LIB_FOUND.${_lib_})
@@ -36,7 +36,11 @@ CHECK_BUILTIN.dl?= no
. if !empty(USE_BUILTIN.dl:M[yY][eE][sS])
BUILDLINK_PREFIX.dl= /usr
. if !empty(_BLNK_LIB_FOUND.dl:M[yY][eE][sS])
-BUILDLINK_LIBS.dl= -ldl
+#
+# No need to add this to BUILDLINK_LIBS.dl since most GNU configure
+# scripts already check for -ldl themselves.
+#
+BUILDLINK_LDADD.dl= -ldl
. endif
#
# The following platforms require pthreads to be linked into the