summaryrefslogtreecommitdiff
path: root/mk/buildlink3
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-07-10 12:55:08 +0000
committergrant <grant@pkgsrc.org>2004-07-10 12:55:08 +0000
commit1d8168af4ed9c0c67407984cee44107e049556a8 (patch)
tree6b821cd346e49562bc1e9952f4c23edff93ff37f /mk/buildlink3
parent83aeaa936d18a24345726321af30220439834f06 (diff)
downloadpkgsrc-1d8168af4ed9c0c67407984cee44107e049556a8.tar.gz
explicitly don't transform "-Wl,*", fixing a bug that meant we were
throwing away all -W arguments that weren't -Wl,-R. fixes building of a number of packages on Solaris.
Diffstat (limited to 'mk/buildlink3')
-rw-r--r--mk/buildlink3/sunpro-cc-post-logic6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/buildlink3/sunpro-cc-post-logic b/mk/buildlink3/sunpro-cc-post-logic
index 1aac45ae429..039fe78c78b 100644
--- a/mk/buildlink3/sunpro-cc-post-logic
+++ b/mk/buildlink3/sunpro-cc-post-logic
@@ -1,4 +1,4 @@
-# $NetBSD: sunpro-cc-post-logic,v 1.11 2004/07/04 08:30:46 grant Exp $
+# $NetBSD: sunpro-cc-post-logic,v 1.12 2004/07/10 12:55:08 grant Exp $
#
# Silently accept some GCC compiler arguments by silently converting
# them to the SunPro compiler equivalents. This makes the SunPro
@@ -28,6 +28,10 @@ case $arg in
arg=`$echo "X$arg" | $Xsed -e "s|^-Wl,||g" -e "s|,| |g"`
addtoprivatecache=yes
;;
+-Wl,*)
+ # Explicitly do nothing to preserve arguments to be passed to
+ # the linker.
+ ;;
-W*)
# In fact, SunPro compilers don't even understand any -W*
# arguments, so just silently ignore them all.