diff options
author | salo <salo@pkgsrc.org> | 2003-07-09 16:07:21 +0000 |
---|---|---|
committer | salo <salo@pkgsrc.org> | 2003-07-09 16:07:21 +0000 |
commit | d750aba60714e0d9cea99f9db0eedba304b13c15 (patch) | |
tree | 91ab69339109865a376c1d2319d9469f80870f06 /mk/bsd.prefs.mk | |
parent | f1bd37d7e60351b7c10cb0f7788e77751369fd9c (diff) | |
download | pkgsrc-d750aba60714e0d9cea99f9db0eedba304b13c15.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.mk | 10 |
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 |