summaryrefslogtreecommitdiff
path: root/hints/aix.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-10-11 06:37:47 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-10-11 06:37:47 +0000
commite32161bdf8fbac396a5c4077d27b059003a04dfe (patch)
tree11283684927f47fc02b5c0ac4c7c2ced172f3a25 /hints/aix.sh
parent67d3893f3b475ca335f6043466b3b86e1842b36f (diff)
downloadperl-e32161bdf8fbac396a5c4077d27b059003a04dfe.tar.gz
The 2.5th cut at the AIX C++ extension problems.
p4raw-id: //depot/cfgperl@4341
Diffstat (limited to 'hints/aix.sh')
-rw-r--r--hints/aix.sh32
1 files changed, 9 insertions, 23 deletions
diff --git a/hints/aix.sh b/hints/aix.sh
index bd1d859c0f..60ca22a74f 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