develooper Front page | perl.perl5.porters | Postings from July 2001

Re: AIX / gcc-3.0

Thread Previous | Thread Next
From:
H . Merijn Brand
Date:
July 2, 2001 06:47
Subject:
Re: AIX / gcc-3.0
Message ID:
20010702151904.49BB.H.M.BRAND@hccnet.nl
On Fri 29 Jun 2001 17:05, Jens-Uwe Mager <jum@helios.de> wrote:
> On Fri, Jun 29, 2001 at 04:57:12PM +0200, H.Merijn Brand wrote:
> > Would this do?
> > 
> > [snip]
> 
> Well, not exactly as this should be done only if the compiler is gcc as
> the IBM compilers do not understand what -Wl,... means.

--- hints/aix.sh    Sat Jun 30 16:09:26 2001
+++ hints/aix.sh    Mon Jul  2 15:18:24 2001
@@ -474,8 +474,11 @@

 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

-- 
H.Merijn Brand    Amsterdam Perl Mongers (http://www.amsterdam.pm.org/)
using perl-5.6.1, 5.7.1 & 626 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
     WinNT 4, Win2K pro & WinCE 2.11 often with Tk800.022 &/| DBD-Unify
ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/H/HM/HMBRAND/


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About