summaryrefslogtreecommitdiff
path: root/mk/dlopen.builtin.mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-06-09 05:59:51 +0000
committerjlam <jlam>2005-06-09 05:59:51 +0000
commit864a3d49b08db2c3294aae935f9806a680cd8f82 (patch)
tree18f0416b2c607d59e15203ff5933d11d40b3bcec /mk/dlopen.builtin.mk
parent3b7362bc9a7fd0268f6bfc5ca93fd22cb8759e43 (diff)
downloadpkgsrc-864a3d49b08db2c3294aae935f9806a680cd8f82.tar.gz
Clarify why dlopen.builtin.mk ignores PREFER_* values.
Diffstat (limited to 'mk/dlopen.builtin.mk')
-rw-r--r--mk/dlopen.builtin.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/dlopen.builtin.mk b/mk/dlopen.builtin.mk
index 9b586306c61..655d1ed107b 100644
--- a/mk/dlopen.builtin.mk
+++ b/mk/dlopen.builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: dlopen.builtin.mk,v 1.12 2005/06/08 08:13:05 jlam Exp $
+# $NetBSD: dlopen.builtin.mk,v 1.13 2005/06/09 05:59:51 jlam Exp $
BUILTIN_PKG:= dl
@@ -25,6 +25,11 @@ MAKEVARS+= IS_BUILTIN.dl
### Determine whether we should use the built-in implementation if it
### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
###
+#
+# We ignore the value of PREFER_PKGSRC and PREFER_NATIVE because for
+# every platform except for Darwin, we can only use the built-in
+# dynamic linker functions, so USE_BUILTIN.dl must match IS_BUILTIN.dl.
+#
.if !defined(USE_BUILTIN.dl)
USE_BUILTIN.dl= ${IS_BUILTIN.dl}
. if ${OPSYS} == "Darwin"