summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authorsalo <salo>2003-07-09 16:07:21 +0000
committersalo <salo>2003-07-09 16:07:21 +0000
commita6d17c4e43184b57c5c32af058fd94696a2fdad6 (patch)
tree91ab69339109865a376c1d2319d9469f80870f06 /mk/bsd.prefs.mk
parentd81f5a6722b59122a478132413f5e3fe67035c4a (diff)
downloadpkgsrc-a6d17c4e43184b57c5c32af058fd94696a2fdad6.tar.gz
More support bits for native Sun compilers (on Solaris).
Sun's C++ compiler (CC) doesn't support passing arguments to ld via -Wl flag, remove this flag from the buildlink2 environment.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r--mk/bsd.prefs.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index 3873e69a904..e43c1422aaa 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.115 2003/07/09 11:38:17 abs Exp $
+# $NetBSD: bsd.prefs.mk,v 1.116 2003/07/09 16:07:21 salo Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -349,4 +349,12 @@ WRKDIR?= ${BUILD_DIR}/${WRKDIR_BASENAME}
USE_GCC2= YES
.endif
+# Sun C++ compilers don't support passing ld flags with -Wl to CC.
+#
+.if defined(USE_SUNPRO)
+_COMPILER_LD_FLAG= # pattern for Sun compilers
+.else
+_COMPILER_LD_FLAG= -Wl, # pattern for GCC and others
+.endif
+
.endif # BSD_PKG_MK