Re: AIX / gcc-3.0
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Mon, 2 Jul 2001 15:20:21 +0000 (17:20 +0200)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 2 Jul 2001 13:24:27 +0000 (13:24 +0000)
Message-Id: <20010702151904.49BB.H.M.BRAND@hccnet.nl>

p4raw-id: //depot/perl@11088

hints/aix.sh

index b637391..60c9fe0 100644 (file)
@@ -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