summaryrefslogtreecommitdiff
path: root/mk/wrapper
diff options
context:
space:
mode:
authorsno <sno@pkgsrc.org>2009-06-11 10:38:28 +0000
committersno <sno@pkgsrc.org>2009-06-11 10:38:28 +0000
commit14af475d6aa89cf12cddd1ded1c70a649d58178c (patch)
tree132c2e198c641a67509f811c22964fe014cb8d8d /mk/wrapper
parent6f725f7b381de7c0d196b35efdd74bd38dad4c00 (diff)
downloadpkgsrc-14af475d6aa89cf12cddd1ded1c70a649d58178c.tar.gz
wrap some more gcc flags to suitable xlc flags
Diffstat (limited to 'mk/wrapper')
-rw-r--r--mk/wrapper/cmd-sink-aix-cc30
-rw-r--r--mk/wrapper/cmd-sink-aix-xlc30
2 files changed, 58 insertions, 2 deletions
diff --git a/mk/wrapper/cmd-sink-aix-cc b/mk/wrapper/cmd-sink-aix-cc
index 3e2140648f8..5fbc95c2416 100644
--- a/mk/wrapper/cmd-sink-aix-cc
+++ b/mk/wrapper/cmd-sink-aix-cc
@@ -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 @@ while ! queue_is_empty cmdbuf; do
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 @@ while ! queue_is_empty cmdbuf; do
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 --git a/mk/wrapper/cmd-sink-aix-xlc b/mk/wrapper/cmd-sink-aix-xlc
index 9812a2df5d1..9ef40a3b3d0 100644
--- a/mk/wrapper/cmd-sink-aix-xlc
+++ b/mk/wrapper/cmd-sink-aix-xlc
@@ -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 @@ while ! queue_is_empty cmdbuf; do
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 @@ while ! queue_is_empty cmdbuf; do
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
;;