From: H.Merijn Brand Date: Mon, 2 Jul 2001 15:20:21 +0000 (+0200) Subject: Re: AIX / gcc-3.0 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fd90a50dd9dd98650b54e33f8b9a3e77bcbf54b8;p=p5sagit%2Fp5-mst-13.2.git Re: AIX / gcc-3.0 Message-Id: <20010702151904.49BB.H.M.BRAND@hccnet.nl> p4raw-id: //depot/perl@11088 --- diff --git a/hints/aix.sh b/hints/aix.sh index b637391..60c9fe0 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -474,8 +474,11 @@ EOCBU if test $usenativedlopen = 'true' then - ccflags="$ccflags -DUSE_NATIVE_DLOPEN" - ldflags="$ldflags -brtl" + ccflags="$ccflags -DUSE_NATIVE_DLOPEN" + case "$cc" in + *gcc*) ldflags="$ldflags -Wl,-brtl" ;; + *) ldflags="$ldflags -brtl" ;; + esac else # If the C++ libraries, libC and libC_r, are available we will prefer them # over the vanilla libc, because the libC contain loadAndInit() and