summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorsno <sno>2009-06-11 10:38:28 +0000
committersno <sno>2009-06-11 10:38:28 +0000
commit61addcfc1b231568bb719d63f7d22899b9ecb235 (patch)
tree132c2e198c641a67509f811c22964fe014cb8d8d /mk
parent675c25b6a359e95fc43fb962bd915b8e3c8506e0 (diff)
downloadpkgsrc-61addcfc1b231568bb719d63f7d22899b9ecb235.tar.gz
wrap some more gcc flags to suitable xlc flags
Diffstat (limited to 'mk')
-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
;;