From: H.Merijn Brand Date: Mon, 28 May 2001 12:54:04 +0000 (+0200) Subject: AIX and gcc (moving targets) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b0f9136b66892861f4764ec047f74ef287daf988;p=p5sagit%2Fp5-mst-13.2.git AIX and gcc (moving targets) Message-Id: <20010528124531.9FAB.H.M.BRAND@hccnet.nl> p4raw-id: //depot/perl@10256 --- diff --git a/hints/aix.sh b/hints/aix.sh index c374131..e85b68b 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -126,6 +126,7 @@ d_setreuid='undef' # Changes for dynamic linking by Wayne Scott # # Tell perl which symbols to export for dynamic linking. +cccdlflags='none' # All AIX code is position independent case "$cc" in *gcc*) ccdlflags='-Xlinker' ;; *) ccversion=`lslpp -L | grep 'C for AIX Compiler$' | awk '{print $2}'` @@ -299,6 +300,9 @@ EOM # 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'`" echo >&4 "(using ccflags $ccflags)" echo >&4 "(using ldflags $ldflags)" ;;