diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-14 20:23:53 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-14 20:23:53 +0000 |
commit | 5f464b2eb090216cc66e37fd53ea85cc759ad9be (patch) | |
tree | 145fddc57f1ae9d25e7a8f256f37671988a9e4e7 /hints | |
parent | 521126c3fedddba92be66cb8ba2a79ad25c9dc95 (diff) | |
download | perl-5f464b2eb090216cc66e37fd53ea85cc759ad9be.tar.gz |
Retract #9136: breaks threading (and binary compatibility).
p4raw-id: //depot/perl@9155
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 |