diff options
author | grant <grant@pkgsrc.org> | 2004-07-04 08:30:46 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2004-07-04 08:30:46 +0000 |
commit | 4b6f21b903d47d4acfbd3ccf546f3cffd3db9b77 (patch) | |
tree | 32673c96b8b516ee0d1bc2d9e1458e0e324d3361 /mk | |
parent | 846e17f5b4711d16214a8af2da0a5f295ca1aefe (diff) | |
download | pkgsrc-4b6f21b903d47d4acfbd3ccf546f3cffd3db9b77.tar.gz |
transform --export-dynamic to -G and strip -fstrict-prototypes.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/buildlink3/sunpro-cc-post-cache | 4 | ||||
-rw-r--r-- | mk/buildlink3/sunpro-cc-post-logic | 12 |
2 files changed, 13 insertions, 3 deletions
diff --git a/mk/buildlink3/sunpro-cc-post-cache b/mk/buildlink3/sunpro-cc-post-cache index 3195f42a65e..27d779c1387 100644 --- a/mk/buildlink3/sunpro-cc-post-cache +++ b/mk/buildlink3/sunpro-cc-post-cache @@ -1,4 +1,4 @@ -# $NetBSD: sunpro-cc-post-cache,v 1.8 2004/07/03 20:53:59 grant Exp $ +# $NetBSD: sunpro-cc-post-cache,v 1.9 2004/07/04 08:30:46 grant Exp $ # # This file implements the default action of the "cc" private cache # for the SunPro suite of compilers, and tells the wrapper to skip the @@ -6,7 +6,7 @@ # can't handle; they will instead by handled directly by # sunpro-cc-post-logic. --[OW]*|-ansi|-f[pP][iI][cC]|-fno-gnu-keywords|-pedantic|-pthread|-shared|-static) +-[OW]*|-ansi|--export-dynamic|-f[pP][iI][cC]|-fno-gnu-keywords|-fstrict-prototypes|-pedantic|-pthread|-shared|-static) skipcache=yes ;; esac 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= |