From: H.Merijn Brand Date: Thu, 16 May 2002 18:55:41 +0000 (+0200) Subject: Re: AIX warning in hints regarding gcc X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a2147dfeb7f10f2a9fc88c101af1f63b2ab8f9f9;p=p5sagit%2Fp5-mst-13.2.git Re: AIX warning in hints regarding gcc From: "H.Merijn Brand" Message-Id: <20020516185212.667C.H.M.BRAND@hccnet.nl> p4raw-id: //depot/perl@16634 --- diff --git a/hints/aix.sh b/hints/aix.sh index da7a456..e6e97a9 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -354,26 +354,18 @@ libswanted_uselargefiles="`getconf XBS5_ILP32_OFFBIG_LIBS 2>/dev/null|sed -e 's@ esac case "$gccversion" in '') ;; - *) - cat >&4 <&4 "(using ccflags $ccflags)" - echo >&4 "(using ldflags $ldflags)" - echo >&4 "(using lddlflags $lddlflags)" - ;; + *) # Remove xlc-spefific -qflags. + ccflags="`echo $ccflags | sed -e 's@ -q[^ ]*@ @g' -e 's@^-q[^ ]* @@g'`" + ldflags="`echo $ldflags | sed -e 's@ -q[^ ]*@ @g' -e 's@^-q[^ ]* @@g'`" + # Move xld-spefific -bflags. + ccflags="`echo $ccflags | sed -e 's@ -b@ -Wl,-b@g'`" + ldflags="`echo ' '$ldflags | sed -e 's@ -b@ -Wl,-b@g'`" + lddlflags="`echo ' '$lddlflags | sed -e 's@ -b@ -Wl,-b@g'`" + ld='gcc' + echo >&4 "(using ccflags $ccflags)" + echo >&4 "(using ldflags $ldflags)" + echo >&4 "(using lddlflags $lddlflags)" + ;; esac ;; esac