diff options
author | Jens-Uwe Mager <jum@helios.de> | 2001-02-21 22:32:04 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-13 23:12:24 +0000 |
commit | 30def704cafa11862a4b1be8a6e882e725a22b02 (patch) | |
tree | a20731d02087d18ecebabac2ceced170a0ef77bf /hints | |
parent | ac4d53d5579163b3f737e966d72cf1cc106c705d (diff) | |
download | perl-30def704cafa11862a4b1be8a6e882e725a22b02.tar.gz |
(Retracted by #9155)
Subject: Re: [gsar@ActiveState.com: v5.6.1 trial2 is available]
Message-ID: <20010221213203.A18340@ans.helios.de>
p4raw-id: //depot/perl@9136
Diffstat (limited to 'hints')
-rw-r--r-- | hints/aix.sh | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/hints/aix.sh b/hints/aix.sh index 31d189f5d9..406c44275d 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -55,9 +55,11 @@ esac case "$osvers" in 3.*|4.1.*|4.2.*) usenm='undef' + usenativedlopen='false' ;; *) usenm='true' + usenativedlopen='true' ;; esac @@ -429,20 +431,25 @@ $define|true|[yY]*) esac EOCBU -# 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="$*" +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 fi # EOF |