diff options
Diffstat (limited to 'mk/buildlink3/sunpro-cc-post-logic')
-rw-r--r-- | mk/buildlink3/sunpro-cc-post-logic | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mk/buildlink3/sunpro-cc-post-logic b/mk/buildlink3/sunpro-cc-post-logic index 3d6947f10eb..1aac45ae429 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.10 2004/07/03 20:53:47 grant Exp $ +# $NetBSD: sunpro-cc-post-logic,v 1.11 2004/07/04 08:30:46 grant 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= |