summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2004-11-26 08:26:51 +0000
committerjlam <jlam>2004-11-26 08:26:51 +0000
commit46d5221d07751c907b2c977129f960aa8c2077c0 (patch)
tree2b48eafe042461f369d01d14bb3586e3b09ae476 /mk
parent24e83c9195ca7785adf7dd6bf5312f6955ce5d8f (diff)
downloadpkgsrc-46d5221d07751c907b2c977129f960aa8c2077c0.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