summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorgrant <grant>2004-02-16 22:22:38 +0000
committergrant <grant>2004-02-16 22:22:38 +0000
commit157a8e5687f0a28980c7a68b4faac62cd4c3bf4f (patch)
treebb01fc2f97769b7e1fddc00fb1e9ae71db8112e7 /mk
parentc219ed0e7db9ccb79aba09b61e73b50c7a71735a (diff)
downloadpkgsrc-157a8e5687f0a28980c7a68b4faac62cd4c3bf4f.tar.gz
also ignore -pedantic, SunPro doesn't need to be told ;-)
Diffstat (limited to 'mk')
-rw-r--r--mk/buildlink3/sunpro-cc-post-cache4
-rw-r--r--mk/buildlink3/sunpro-cc-post-logic7
2 files changed, 8 insertions, 3 deletions
diff --git a/mk/buildlink3/sunpro-cc-post-cache b/mk/buildlink3/sunpro-cc-post-cache
index 1ad074576a2..be44e0b3e2f 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.5 2004/02/16 12:18:15 grant Exp $
+# $NetBSD: sunpro-cc-post-cache,v 1.6 2004/02/16 22:22:38 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]|-shared)
+-[OW]*|-ansi|-f[pP][iI][cC]|-pedantic|-shared)
skipcache=yes
;;
esac
diff --git a/mk/buildlink3/sunpro-cc-post-logic b/mk/buildlink3/sunpro-cc-post-logic
index 7faeb1e1ffb..8a1c873e059 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.5 2004/02/16 12:18:15 grant Exp $
+# $NetBSD: sunpro-cc-post-logic,v 1.6 2004/02/16 22:22:38 grant Exp $
#
# Silently accept some GCC compiler arguments by silently converting
# them to the SunPro compiler equivalents. This makes the SunPro
@@ -46,6 +46,11 @@ case $arg in
arg=-Kpic
addtoprivatecache=yes
;;
+-pedantic)
+ # No flag is required for SunPro to be pedantic.
+ arg=
+ addtoprivatecache=yes
+ ;;
-shared)
# Solaris' linker uses -G to create shared objects.
#