summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authorgrant <grant>2005-07-21 01:36:25 +0000
committergrant <grant>2005-07-21 01:36:25 +0000
commitf370728bdf54832b04dcaca0c30ea6b4522bbcff (patch)
treecf98468bc82e9b9d6c154e1920be0dd874461532 /mk/compiler
parentc1f51a8a2f4b5e855be944feaa54a901f8dc2d77 (diff)
downloadpkgsrc-f370728bdf54832b04dcaca0c30ea6b4522bbcff.tar.gz
some packages expect "-Wl," immediately before flags to be passed to
the linker, set _COMPILER_RPATH_FLAG accordingly. "-Wl," is removed by the sunpro compiler wrapper where necessary. fix comment for _LINKER_RPATH_FLAG while here. this fixes, among other things, apache modules built with apxs.
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/sunpro.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/mk/compiler/sunpro.mk b/mk/compiler/sunpro.mk
index aa35267bd4f..076071bc313 100644
--- a/mk/compiler/sunpro.mk
+++ b/mk/compiler/sunpro.mk
@@ -1,4 +1,4 @@
-# $NetBSD: sunpro.mk,v 1.32 2005/05/17 19:06:21 rillig Exp $
+# $NetBSD: sunpro.mk,v 1.33 2005/07/21 01:36:25 grant Exp $
.if !defined(COMPILER_SUNPRO_MK)
COMPILER_SUNPRO_MK= defined
@@ -32,11 +32,13 @@ PKG_CXX:= ${_SUNPRO_CXX}
.endif
_COMPILER_STRIP_VARS+= ${_SUNPRO_VARS}
-# SunPro passes rpath directives to the linker using "-R".
+# The Solaris linker uses "-R" for rpath directives.
_LINKER_RPATH_FLAG= -R
-# SunPro passes rpath directives to the linker using "-R".
-_COMPILER_RPATH_FLAG= -R
+# SunPro passes rpath directives to the linker using "-R", however
+# some packages require the "-Wl," prefix to recognize linker options.
+# This is transformed by the compiler wrapper to "-R".
+_COMPILER_RPATH_FLAG= -Wl,-R
# SunPro compiler must be passed certain flags to compile/link 64-bit code.
_COMPILER_ABI_FLAG.64= -xtarget=ultra -xarch=v9