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
commitbdbcf6f0389e30b30d5774f7e699503eb9a37f96 (patch)
tree2b48eafe042461f369d01d14bb3586e3b09ae476 /mk
parent96786425e0b37aa93c99205f4e6eeffdb33d968b (diff)
downloadpkgsrc-bdbcf6f0389e30b30d5774f7e699503eb9a37f96.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