diff options
Diffstat (limited to 'hints')
-rw-r--r-- | hints/aix.sh | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/hints/aix.sh b/hints/aix.sh index 406c44275d..31d189f5d9 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -55,11 +55,9 @@ esac case "$osvers" in 3.*|4.1.*|4.2.*) usenm='undef' - usenativedlopen='false' ;; *) usenm='true' - usenativedlopen='true' ;; esac @@ -431,25 +429,20 @@ $define|true|[yY]*) esac EOCBU -if test $usenativedlopen = 'true' -then - ccflags="$ccflags -DUSE_NATIVE_DLOPEN" -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 - # terminateAndUnload() which work correctly with C++ statics while libc - # load() and unload() do not. See ext/DynaLoader/dl_aix.xs. - # The C-to-C_r switch is done by usethreads.cbu, if needed. - if test -f /lib/libC.a -a X"`$cc -v 2>&1 | grep gcc`" = X; then - # Cify libswanted. - set `echo X "$libswanted "| sed -e 's/ c / C c /'` - shift - libswanted="$*" - # Cify lddlflags. - set `echo X "$lddlflags "| sed -e 's/ -lc / -lC -lc /'` - shift - lddlflags="$*" - fi +# If the C++ libraries, libC and libC_r, are available we will prefer them +# over the vanilla libc, because the libC contain loadAndInit() and +# terminateAndUnload() which work correctly with C++ statics while libc +# load() and unload() do not. See ext/DynaLoader/dl_aix.xs. +# The C-to-C_r switch is done by usethreads.cbu, if needed. +if test -f /lib/libC.a -a X"`$cc -v 2>&1 | grep gcc`" = X; then + # Cify libswanted. + set `echo X "$libswanted "| sed -e 's/ c / C c /'` + shift + libswanted="$*" + # Cify lddlflags. + set `echo X "$lddlflags "| sed -e 's/ -lc / -lC -lc /'` + shift + lddlflags="$*" fi # EOF |