summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2004-07-31 08:32:31 +0000
committerH.Merijn Brand <h.m.brand@xs4all.nl>2004-07-31 08:32:31 +0000
commit142c15906ae08e559b1337c4816a6c2a0c341e24 (patch)
tree58d7670aac106ec94cfa9852d63d5f3f2b753b08 /hints
parent7b667b5fb1c41f31aff1e46b9f74e36eb063010e (diff)
downloadperl-142c15906ae08e559b1337c4816a6c2a0c341e24.tar.gz
First steps towards an explicit perl.exp-less AIX build
Previous method can still be used by undeffing usenativedlopen If that is ever tested at all on AIX p4raw-id: //depot/perl@23174
Diffstat (limited to 'hints')
-rw-r--r--hints/aix.sh20
-rwxr-xr-xhints/aix_4.sh6
2 files changed, 22 insertions, 4 deletions
diff --git a/hints/aix.sh b/hints/aix.sh
index e4966042bc..baf8c00303 100644
--- a/hints/aix.sh
+++ b/hints/aix.sh
@@ -157,7 +157,11 @@ case "$cc" in
# -bI:$(PERL_INC)/perl.exp Read the exported symbols from the perl binary
# -bE:$(BASEEXT).exp Export these symbols. This file contains only one
# symbol: boot_$(EXP) can it be auto-generated?
-lddlflags="$lddlflags -bhalt:4 -bM:SRE -bI:\$(PERL_INC)/perl.exp -bE:\$(BASEEXT).exp -bnoentry -lc"
+if test $usenativedlopen = 'true' ; then
+ lddlflags="$lddlflags -bhalt:4 -bexpall -G -bnoentry -lc"
+else
+ lddlflags="$lddlflags -bhalt:4 -bM:SRE -bI:\$(PERL_INC)/perl.exp -bE:\$(BASEEXT).exp -bnoentry -lc"
+ fi
case "$use64bitall" in
$define|true|[yY]*) use64bitint="$define" ;;
@@ -415,9 +419,19 @@ EOCBU
if test $usenativedlopen = 'true' ; then
ccflags="$ccflags -DUSE_NATIVE_DLOPEN"
+ # -brtl Enables a binary to use run time linking
+ # -bdynamic When used with -brtl, tells linker to search for
+ # ".so"-suffix libraries as well as ".a" suffix
+ # libraries. AIX allows both .so and .a libraries to
+ # contain dynamic shared objects.
+ # -bmaxdata:0x80000000 This increases the size of heap memory available
+ # to perl. Default is 256 MB, which sounds large but
+ # caused a software vendor problems. So this sets
+ # heap to 2 GB maximum. Anything higher and you'd
+ # want to consider 64 bit perl.
case "$cc" in
- *gcc*) ldflags="$ldflags -Wl,-brtl" ;;
- *) ldflags="$ldflags -brtl" ;;
+ *gcc*) ldflags="$ldflags -Wl,-brtl -Wl,-bdynamic -Wl,-bmaxdata:0x80000000" ;;
+ *) ldflags="$ldflags -brtl -bdynamic -bmaxdata:0x80000000" ;;
esac
elif test -f /lib/libC.a -a X"`$cc -v 2>&1 | grep gcc`" = X; then
# If the C++ libraries, libC and libC_r, are available we will
diff --git a/hints/aix_4.sh b/hints/aix_4.sh
index 35ae781883..f88b28db6b 100755
--- a/hints/aix_4.sh
+++ b/hints/aix_4.sh
@@ -216,7 +216,11 @@ regcomp_cflags='optimize='
# -bI:$(PERL_INC)/perl.exp Read the exported symbols from the perl binary
# -bE:$(BASEEXT).exp Export these symbols. This file contains only one
# symbol: boot_$(EXP) can it be auto-generated?
-lddlflags="$lddlflags -bhalt:4 -bM:SRE -bI:\$(PERL_INC)/perl.exp -bE:\$(BASEEXT).exp -bnoentry -lc"
+if test $usenativedlopen = 'true' ; then
+ lddlflags="$lddlflags -bhalt:4 -bexpall -G -bnoentry -lc"
+else
+ lddlflags="$lddlflags -bhalt:4 -bM:SRE -bI:\$(PERL_INC)/perl.exp -bE:\$(BASEEXT).exp -bnoentry -lc"
+ fi
case "$use64bitall" in
$define|true|[yY]*) use64bitint="$define" ;;