The build procedure of modperl under AIX is historically geared towards
using the IBM native C compiler (this is also what I use exclusively as
it produces better code). I have recently debugged the apaci build
variant with the help of some folks who attempted to compile modperl
with gcc, this did not work due to command line differences for linker
options. The patch below adds the -Xlinker command line option needed if
gcc is in use.
Index: apaci/mod_perl.config.sh
===================================================================
RCS file: /home/cvspublic/modperl/apaci/mod_perl.config.sh,v
retrieving revision 1.19
diff -u -d -r1.19 mod_perl.config.sh
--- apaci/mod_perl.config.sh 2000/09/26 20:15:06 1.19
+++ apaci/mod_perl.config.sh 2000/12/06 16:40:17
@@ -118,7 +118,14 @@
perl_lddlflags="`$perl_interp $config_pm -e 'print $Config{lddlflags}'`"
case "$os_version" in
- aix*) perl_lddlflags="$perl_lddlflags -bI:\$(APACHELIBEXEC)/httpd.exp" ;;
+ aix*)
+ case "$perl_cc" in
+ *gcc*)
+ XLINKER="-Xlinker "
+ ;;
+ esac
+ perl_lddlflags="$perl_lddlflags $XLINKER-bI:\$(APACHELIBEXEC)/httpd.exp"
+ ;;
* ) ;;
esac
@@ -150,7 +157,7 @@
if test $build_type = OBJ
then
case "$os_version" in
- aix*) perl_libs="$perl_libs -bE:\$(SRCDIR)/modules/perl/mod_perl.exp" ;;
+ aix*) perl_libs="$perl_libs $XLINKER-bE:\$(SRCDIR)/modules/perl/mod_perl.exp" ;;
* ) ;;
esac
fi
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX: +49 5131 709325
Internet: jum@helios.de
using the IBM native C compiler (this is also what I use exclusively as
it produces better code). I have recently debugged the apaci build
variant with the help of some folks who attempted to compile modperl
with gcc, this did not work due to command line differences for linker
options. The patch below adds the -Xlinker command line option needed if
gcc is in use.
Index: apaci/mod_perl.config.sh
===================================================================
RCS file: /home/cvspublic/modperl/apaci/mod_perl.config.sh,v
retrieving revision 1.19
diff -u -d -r1.19 mod_perl.config.sh
--- apaci/mod_perl.config.sh 2000/09/26 20:15:06 1.19
+++ apaci/mod_perl.config.sh 2000/12/06 16:40:17
@@ -118,7 +118,14 @@
perl_lddlflags="`$perl_interp $config_pm -e 'print $Config{lddlflags}'`"
case "$os_version" in
- aix*) perl_lddlflags="$perl_lddlflags -bI:\$(APACHELIBEXEC)/httpd.exp" ;;
+ aix*)
+ case "$perl_cc" in
+ *gcc*)
+ XLINKER="-Xlinker "
+ ;;
+ esac
+ perl_lddlflags="$perl_lddlflags $XLINKER-bI:\$(APACHELIBEXEC)/httpd.exp"
+ ;;
* ) ;;
esac
@@ -150,7 +157,7 @@
if test $build_type = OBJ
then
case "$os_version" in
- aix*) perl_libs="$perl_libs -bE:\$(SRCDIR)/modules/perl/mod_perl.exp" ;;
+ aix*) perl_libs="$perl_libs $XLINKER-bE:\$(SRCDIR)/modules/perl/mod_perl.exp" ;;
* ) ;;
esac
fi
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX: +49 5131 709325
Internet: jum@helios.de