summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
diff options
context:
space:
mode:
authorgrant <grant>2003-05-29 23:08:01 +0000
committergrant <grant>2003-05-29 23:08:01 +0000
commit6d140306195b275b74f3eb1a512dad0797c70f61 (patch)
tree4c4ce29268d1abdd30ff822942d0b2361950fe48 /mk/bsd.pkg.mk
parent150c965f9cfb707da05e768deb016dfe427907b1 (diff)
downloadpkgsrc-6d140306195b275b74f3eb1a512dad0797c70f61.tar.gz
include gcc.buildlink2.mk if USE_GCC_SHLIB is defined. this replaces
the (now deprecated) USE_CXX.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r--mk/bsd.pkg.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index cfdcc656d1d..8fdd34cde6a 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1185 2003/05/29 11:39:22 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1186 2003/05/29 23:08:01 grant Exp $
#
# This file is in the public domain.
#
@@ -210,6 +210,12 @@ MAKE_ENV+= F77="${F77}"
MAKE_ENV+= FC="${FC}"
.endif
+# Ensure the correct rpath is passed to the linker to enable packages
+# to find shared libraries from gcc.
+.if defined(USE_GCC_SHLIB)
+. include "../../mk/gcc.buildlink2.mk"
+.endif
+
# Automatically increase process limit where necessary for building.
_ULIMIT_CMD=
.if defined(UNLIMIT_RESOURCES)