summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-02-16 12:18:15 +0000
committergrant <grant@pkgsrc.org>2004-02-16 12:18:15 +0000
commit0e24610e47445d98e7ad3db6c6a47691ab3a1637 (patch)
treec0e921d48f1848db3a9c9780f1ec46da6345c80f
parent304a1d6309e3a02050b0996d5ceb2c0ae5c6b72e (diff)
downloadpkgsrc-0e24610e47445d98e7ad3db6c6a47691ab3a1637.tar.gz
ignore -ansi, SunPro doesn't need to be told to support ANSI C.
-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 51e26792538..1ad074576a2 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.4 2004/02/12 10:16:27 jlam Exp $
+# $NetBSD: sunpro-cc-post-cache,v 1.5 2004/02/16 12:18:15 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]*|-f[pP][iI][cC]|-shared)
+-[OW]*|-ansi|-f[pP][iI][cC]|-shared)
skipcache=yes
;;
esac
diff --git a/mk/buildlink3/sunpro-cc-post-logic b/mk/buildlink3/sunpro-cc-post-logic
index 22ce4cd1d58..7faeb1e1ffb 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.4 2004/02/02 01:36:14 grant Exp $
+# $NetBSD: sunpro-cc-post-logic,v 1.5 2004/02/16 12:18:15 grant Exp $
#
# Silently accept some GCC compiler arguments by silently converting
# them to the SunPro compiler equivalents. This makes the SunPro
@@ -35,6 +35,11 @@ case $arg in
arg=
addtoprivatecache=yes
;;
+-ansi)
+ # No flag is required to specify ANSI C.
+ arg=
+ addtoprivatecache=yes
+ ;;
-f[Pp][Ii][Cc])
# SunPro uses -Kpic to create position indepedent code.
#