pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/wrapper wrap some more gcc flags to suitable xlc flags
details: https://anonhg.NetBSD.org/pkgsrc/rev/cd3a8d94c306
branches: trunk
changeset: 560368:cd3a8d94c306
user: sno <sno%pkgsrc.org@localhost>
date: Thu Jun 11 10:38:28 2009 +0000
description:
wrap some more gcc flags to suitable xlc flags
diffstat:
mk/wrapper/cmd-sink-aix-cc | 30 +++++++++++++++++++++++++++++-
mk/wrapper/cmd-sink-aix-xlc | 30 +++++++++++++++++++++++++++++-
2 files changed, 58 insertions(+), 2 deletions(-)
diffs (110 lines):
diff -r f42d4101eadf -r cd3a8d94c306 mk/wrapper/cmd-sink-aix-cc
--- a/mk/wrapper/cmd-sink-aix-cc Thu Jun 11 10:36:21 2009 +0000
+++ b/mk/wrapper/cmd-sink-aix-cc Thu Jun 11 10:38:28 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: cmd-sink-aix-cc,v 1.8 2009/06/02 17:39:28 sno Exp $
+# $NetBSD: cmd-sink-aix-cc,v 1.9 2009/06/11 10:38:28 sno Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -86,10 +86,22 @@
arg=-qthreaded
. $buildcmd
;;
+ -fexceptions)
+ arg=-qstrict=exceptions
+ . $buildcmd
+ ;;
-fpic|-fPIC)
arg=-qpic=large
. $buildcmd
;;
+ -Os)
+ arg=-O2
+ . $buildcmd
+ arg=-qnounroll
+ . $buildcmd
+ arg=-qnoinline
+ . $buildcmd
+ ;;
-shared)
arg=-qmkshrobj
. $buildcmd
@@ -104,6 +116,22 @@
arg=-Wl,-bexpall
. $buildcmd
;;
+ -Wall)
+ arg=-qflag=w:w
+ . $buildcmd
+ arg=-qinfo
+ . $buildcmd
+ ;;
+ -W|-Wextra)
+ arg=-qformat
+ . $buildcmd
+ arg=-qwarn64
+ . $buildcmd
+ ;;
+ -Werror)
+ arg=-qhalt=w
+ . $buildcmd
+ ;;
*)
. $buildcmd
;;
diff -r f42d4101eadf -r cd3a8d94c306 mk/wrapper/cmd-sink-aix-xlc
--- a/mk/wrapper/cmd-sink-aix-xlc Thu Jun 11 10:36:21 2009 +0000
+++ b/mk/wrapper/cmd-sink-aix-xlc Thu Jun 11 10:38:28 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: cmd-sink-aix-xlc,v 1.12 2009/06/02 17:39:28 sno Exp $
+# $NetBSD: cmd-sink-aix-xlc,v 1.13 2009/06/11 10:38:28 sno Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -82,10 +82,22 @@
arg=-qthreaded
. $buildcmd
;;
+ -fexceptions)
+ arg=-qstrict=exceptions
+ . $buildcmd
+ ;;
-fpic|-fPIC)
arg=-qpic=large
. $buildcmd
;;
+ -Os)
+ arg=-O2
+ . $buildcmd
+ arg=-qnounroll
+ . $buildcmd
+ arg=-qnoinline
+ . $buildcmd
+ ;;
-shared)
arg=-qmkshrobj
. $buildcmd
@@ -100,6 +112,22 @@
arg=-Wl,-bexpall
. $buildcmd
;;
+ -Wall)
+ arg=-qflag=w:w
+ . $buildcmd
+ arg=-qinfo
+ . $buildcmd
+ ;;
+ -W|-Wextra)
+ arg=-qformat
+ . $buildcmd
+ arg=-qwarn64
+ . $buildcmd
+ ;;
+ -Werror)
+ arg=-qhalt=w
+ . $buildcmd
+ ;;
*)
. $buildcmd
;;
Home |
Main Index |
Thread Index |
Old Index