From 0e0552796465e9d07c424bcdd75762163f81b42d Mon Sep 17 00:00:00 2001 From: sno Date: Sat, 30 May 2009 16:08:03 +0000 Subject: add some argument wrappers after studying xlc manpage --- mk/wrapper/cmd-sink-aix-cc | 15 +++++++++++++-- mk/wrapper/cmd-sink-aix-xlc | 15 +++++++++++++-- 2 files changed, 26 insertions(+), 4 deletions(-) (limited to 'mk/wrapper') diff --git a/mk/wrapper/cmd-sink-aix-cc b/mk/wrapper/cmd-sink-aix-cc index 5d866e2d341..e1b8b77a2d2 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.6 2009/01/15 16:55:33 joerg Exp $ +# $NetBSD: cmd-sink-aix-cc,v 1.7 2009/05/30 16:08:03 sno Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -82,8 +82,19 @@ while ! queue_is_empty cmdbuf; do esac $debug_log $wrapperlog " (cmd-sink-aix-cc) drop: $dir [adding to blibpath]" ;; + -pthread) + arg=-qthreaded + . $buildcmd + ;; + -fpic) + -fPIC) + arg=-qpic=large + . $buildcmd + ;; -shared) - arg="-bshared" + arg=-qmkshrobj + . $buildcmd + arg=-bshared . $buildcmd ;; -Wl,-soname*) diff --git a/mk/wrapper/cmd-sink-aix-xlc b/mk/wrapper/cmd-sink-aix-xlc index cd901109b87..c29f479656c 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.10 2009/01/15 16:55:33 joerg Exp $ +# $NetBSD: cmd-sink-aix-xlc,v 1.11 2009/05/30 16:08:03 sno Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -78,8 +78,19 @@ while ! queue_is_empty cmdbuf; do esac $debug_log $wrapperlog " (cmd-sink-aix-xlc) drop: $dir [adding to blibpath]" ;; + -pthread) + arg=-qthreaded + . $buildcmd + ;; + -fpic) + -fPIC) + arg=-qpic=large + . $buildcmd + ;; -shared) - arg="-bshared" + arg=-qmkshrobj + . $buildcmd + arg=-bshared . $buildcmd ;; -Wl,-soname*) -- cgit v1.2.3