From: Jarkko Hietaniemi Date: Mon, 11 Oct 1999 06:37:47 +0000 (+0000) Subject: The 2.5th cut at the AIX C++ extension problems. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e32161bdf8fbac396a5c4077d27b059003a04dfe;p=p5sagit%2Fp5-mst-13.2.git The 2.5th cut at the AIX C++ extension problems. p4raw-id: //depot/cfgperl@4341 --- diff --git a/hints/aix.sh b/hints/aix.sh index bd1d859..60ca22a 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -230,29 +230,15 @@ EOCBU # 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; then - case "$cc" in - xlC*) - # Cify libswanted for xlC. - set `echo X "$libswanted "| sed -e 's/ c / C /'` - shift - libswanted="$*" - # Cify lddlflags for xlC. - set `echo X "$lddlflags "| sed -e 's/ -lc / -lC /'` - shift - lddlflags="$*" - ;; - *) - # Cify libswanted for non-xlC. - set `echo X "$libswanted "| sed -e 's/ c / c C /'` - shift - libswanted="$*" - # Cify lddlflags for non-xlC. - set `echo X "$lddlflags "| sed -e 's/ -lc / -lc -lC /'` - shift - lddlflags="$*" - ;; - esac +if test -f /lib/libC.a -a X"$gccversion" = 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