diff options
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 |