This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
First steps towards an explicit perl.exp-less AIX build
[perl5.git] / hints / aix_4.sh
index 41ec5c1..f88b28d 100755 (executable)
@@ -204,6 +204,9 @@ EOF
 regcomp_cflags='optimize='
                ;;
            esac
+       case "$ccversion" in
+           5*) usemallocwrap='n' ;; # causes panic in miniperl
+           esac
     esac
 # the required -bE:$installarchlib/CORE/perl.exp is added by
 # libperl.U (Configure) later.
@@ -213,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" ;;