pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/wrapper Some of the SunPro compilers (cc, c89) cann...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2d8f77fc23d8
branches: trunk
changeset: 522698:2d8f77fc23d8
user: rillig <rillig%pkgsrc.org@localhost>
date: Mon Dec 18 00:21:31 2006 +0000
description:
Some of the SunPro compilers (cc, c89) cannot handle the -O0 and -O1
options. Some others (c99, CC) can. To avoid linker errors about
"illegal option -- 1", these options are converted to -xO0 and -xO1,
which work.
Committed during the freeze to avoid breakage of packages. The code that
passed the -O0 and -O1 options through is relatively new, so there may
not have shown packages that break because of this.
diffstat:
mk/wrapper/transform-sunpro-cc | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (31 lines):
diff -r 98c5de1b7f14 -r 2d8f77fc23d8 mk/wrapper/transform-sunpro-cc
--- a/mk/wrapper/transform-sunpro-cc Sun Dec 17 23:02:25 2006 +0000
+++ b/mk/wrapper/transform-sunpro-cc Mon Dec 18 00:21:31 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: transform-sunpro-cc,v 1.20 2006/12/08 05:35:55 rillig Exp $
+# $NetBSD: transform-sunpro-cc,v 1.21 2006/12/18 00:21:31 rillig Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -38,17 +38,16 @@
case $arg in
-# Standard options.
+# Standard options, except -O0 and -O1.
-[cEgOos] |\
--[DILlU]?* |\
--O[01] ) transform_pass ;;
+-[DILlU]?* ) transform_pass ;;
# Create dependency lines for Makefiles
-MM ) transform_to "-xM1" ;;
-# SunPro can handle -xO<n> (n={1|2|3|4|5}), so optimistically
+# SunPro can handle -xO<n> (n={0|1|2|3|4|5}), so optimistically
# convert those GCC -O<n> values to -xO<n>.
--O[2345] ) transform_to "-xO${arg#-O}" ;;
+-O[012345] ) transform_to "-xO${arg#-O}" ;;
# Ignore all other -O* options.
-O* ) transform_discard_with_warning ;;
Home |
Main Index |
Thread Index |
Old Index