pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/buildlink3 Ensure that ${LOCALBASE}/lib is always i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f1cf13c2797d
branches:  trunk
changeset: 471323:f1cf13c2797d
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Mar 26 08:53:01 2004 +0000

description:
Ensure that ${LOCALBASE}/lib is always in the runtime library search path,
even for packages that have no dependencies.

diffstat:

 mk/buildlink3/bsd.buildlink3.mk |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 7adca97b2604 -r f1cf13c2797d mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk   Fri Mar 26 08:33:49 2004 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk   Fri Mar 26 08:53:01 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.127 2004/03/21 00:03:32 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.128 2004/03/26 08:53:01 jlam Exp $
 #
 # An example package buildlink3.mk file:
 #
@@ -436,6 +436,13 @@
 .  endif
 .endfor
 #
+# Ensure that ${LOCALBASE}/lib is in the runtime library search path.
+#
+.if (${_USE_RPATH} == "yes") && \
+    empty(BUILDLINK_LDFLAGS:M${_COMPILER_LD_FLAG}${RPATH_FLAG}${LOCALBASE}/lib)
+BUILDLINK_LDFLAGS+=    ${_COMPILER_LD_FLAG}${RPATH_FLAG}${LOCALBASE}/lib
+.endif
+#
 # Add the X11 library directory to the library search paths if the package
 # uses X11.
 #



Home | Main Index | Thread Index | Old Index