summaryrefslogtreecommitdiff
path: root/mk/buildlink3/sunpro-cc-post-logic
diff options
context:
space:
mode:
Diffstat (limited to 'mk/buildlink3/sunpro-cc-post-logic')
-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 cf7541a8558..64907d909f9 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.8.2.1 2004/07/13 14:00:16 agc Exp $
+# $NetBSD: sunpro-cc-post-logic,v 1.8.2.2 2004/07/30 16:06:57 agc 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.