pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk If we're using the builtin dlopen(), and libdl.* do...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fb404287b5a3
branches:  trunk
changeset: 484997:fb404287b5a3
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Dec 02 15:04:16 2004 +0000

description:
If we're using the builtin dlopen(), and libdl.* doesn't exist, then
drop the "-ldl" option on the floor.  This "fixes" packages that
hardcode "-ldl" into the command line when linking software.

diffstat:

 mk/dlopen.builtin.mk |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r d821cb7f2b12 -r fb404287b5a3 mk/dlopen.builtin.mk
--- a/mk/dlopen.builtin.mk      Thu Dec 02 14:39:56 2004 +0000
+++ b/mk/dlopen.builtin.mk      Thu Dec 02 15:04:16 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: dlopen.builtin.mk,v 1.6 2004/11/28 05:44:34 jlam Exp $
+# $NetBSD: dlopen.builtin.mk,v 1.7 2004/12/02 15:04:16 jlam Exp $
 
 .for _lib_ in dl
 .  if !defined(_BLNK_LIB_FOUND.${_lib_})
@@ -71,6 +71,8 @@
 # scripts already check for -ldl themselves.
 #
 BUILDLINK_LDADD.dl=    -ldl
+.    else
+BUILDLINK_TRANSFORM+=  rm:-ldl
 .    endif
 .    if !empty(_DLOPEN_REQUIRE_PTHREADS:M[yY][eE][sS])
 BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+



Home | Main Index | Thread Index | Old Index