diff options
author | jlam <jlam@pkgsrc.org> | 2004-03-26 08:53:01 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-03-26 08:53:01 +0000 |
commit | e237ad11d023fddeeef71dee499cc0ffc66e786c (patch) | |
tree | e42bae9d2d65f06e9e9f3bd94194bb3e84239961 /mk/buildlink3 | |
parent | e31ad45e30e5c6d67902533ce887fdec35fa7777 (diff) | |
download | pkgsrc-e237ad11d023fddeeef71dee499cc0ffc66e786c.tar.gz |
Ensure that ${LOCALBASE}/lib is always in the runtime library search path,
even for packages that have no dependencies.
Diffstat (limited to 'mk/buildlink3')
-rw-r--r-- | mk/buildlink3/bsd.buildlink3.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk index a2b9ec13cf5..d6e0f88d32e 100644 --- a/mk/buildlink3/bsd.buildlink3.mk +++ b/mk/buildlink3/bsd.buildlink3.mk @@ -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 @@ BUILDLINK_LDFLAGS+= ${_COMPILER_LD_FLAG}${RPATH_FLAG}${_dir_} . 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. # |