diff options
author | grant <grant> | 2003-09-12 16:07:09 +0000 |
---|---|---|
committer | grant <grant> | 2003-09-12 16:07:09 +0000 |
commit | 73850d43edd15b5ad6f7b904a8813fb6ff08af37 (patch) | |
tree | cd5be2467dadec41ea727a58b0d266282f60031d /mk/compiler.mk | |
parent | 0695f16665ce7fdd3a026a18cb98c79f138c6598 (diff) | |
download | pkgsrc-73850d43edd15b5ad6f7b904a8813fb6ff08af37.tar.gz |
move a SunPro tweak to compiler.mk.
Diffstat (limited to 'mk/compiler.mk')
-rw-r--r-- | mk/compiler.mk | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk index d446344fc16..816e7613ca4 100644 --- a/mk/compiler.mk +++ b/mk/compiler.mk @@ -1,4 +1,4 @@ -# $NetBSD: compiler.mk,v 1.3 2003/09/12 15:54:40 grant Exp $ +# $NetBSD: compiler.mk,v 1.4 2003/09/12 16:07:09 grant Exp $ # This Makefile fragment implements handling for supported # C/C++/fortran compilers. @@ -101,4 +101,13 @@ _GCC_LDFLAGS= -L${_GCC_ARCHDIR} -Wl,${RPATH_FLAG}${_GCC_ARCHDIR} -L${_GCC_PREFI LDFLAGS+= ${_GCC_LDFLAGS} .endif +# The SunPro C++ compiler doesn't support passing linker flags with +# -Wl to CC, so we make buildlink2 perform the required magic. +# +.if defined(USE_SUNPRO) +_COMPILER_LD_FLAG= # SunPro compiler +.else +_COMPILER_LD_FLAG= -Wl, # GCC and others +.endif + .endif # COMPILER_MK |