case "$osvers" in
3.*|4.1.*|4.2.*)
usenm='undef'
- usenativedlopen='false'
;;
*)
usenm='true'
- usenativedlopen='true'
;;
esac
***
EOF
;;
+ 5.0.0.0)
+ cat >&4 <<EOF
+***
+*** This C compiler ($ccversion) is known to have optimizer problems
+*** when compiling perl.c.
+***
+*** Disabling optimization for that file but consider upgrading
+*** your C compiler.
+***
+EOF
+perl_cflags='optimize='
+ ;;
5.0.1.0)
cat >&4 <<EOF
***
ar="ar -X64"
nm_opt="-X64 $nm_opt"
# Note: Placing the 'qacflags' variable into the 'ldflags' string
- # is NOT a typo. ldqalags is passed to the C compiler for final
+ # is NOT a typo. ldflags is passed to the C compiler for final
# linking, and it wants -q64 (-b64 is for ld only!).
case "$qacflags$qaldflags$qalibs" in
'');;
*) ccflags="$ccflags $qacflags"
ldflags="$ldflags $qacflags"
- lddqalags="$qaldflags $lddqalags"
+ lddlflags="$qaldflags $lddlflags"
libswanted="$libswanted $qalibs"
;;
esac
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