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-logic17
1 files changed, 16 insertions, 1 deletions
diff --git a/mk/buildlink3/sunpro-cc-post-logic b/mk/buildlink3/sunpro-cc-post-logic
index 771f201359d..cf7541a8558 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 2004/06/13 08:50:15 grant Exp $
+# $NetBSD: sunpro-cc-post-logic,v 1.8.2.1 2004/07/13 14:00:16 agc Exp $
#
# Silently accept some GCC compiler arguments by silently converting
# them to the SunPro compiler equivalents. This makes the SunPro
@@ -40,6 +40,11 @@ case $arg in
arg=
addtoprivatecache=yes
;;
+--export-dynamic)
+ # Solaris' linker uses -G to create shared objects.
+ arg=-G
+ addtoprivatecache=yes
+ ;;
-f[Pp][Ii][Cc])
# SunPro uses -Kpic to create position independent code.
#
@@ -50,6 +55,11 @@ case $arg in
arg=
addtoprivatecache=yes
;;
+ # No flag is required to enforce strict prototypes.
+-fstrict-prototypes)
+ arg=
+ addtoprivatecache=yes
+ ;;
-pedantic)
# No flag is required for SunPro to be pedantic.
arg=
@@ -67,4 +77,9 @@ case $arg in
arg=-G
addtoprivatecache=yes
;;
+-static)
+ # Solaris' linker uses -Bstatic to create static objects.
+ #
+ arg=-Bstatic
+ addtoprivatecache=yes
esac