diff options
Diffstat (limited to 'hints/aix.sh')
-rw-r--r-- | hints/aix.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/hints/aix.sh b/hints/aix.sh index b6373911de..60c9fe0d64 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 |