Skip to content

Commit 73bae37

Browse files
author
foobar
committed
Possible fix for #22259 + part 1/2 for fixing one AIX bug..
1 parent 171fd93 commit 73bae37

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

sapi/apache/config.m4

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,26 +44,30 @@ AC_ARG_WITH(apxs,
4444
4545
for flag in $APXS_CFLAGS; do
4646
case $flag in
47-
-D*) CPPFLAGS="$CPPFLAGS $flag";;
47+
-D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
4848
esac
4949
done
50+
5051
case $host_alias in
5152
*aix*)
5253
APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
53-
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
54-
PHP_SELECT_SAPI(apache, shared, sapi_apache.c mod_php4.c php_apache.c, -I$APXS_INCLUDEDIR)
54+
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
55+
PHP_AIX_LDFLAGS="-Wl,-brtl"
56+
build_type=shared
5557
;;
5658
*darwin*)
5759
MH_BUNDLE_FLAGS="-dynamic -twolevel_namespace -bundle -bundle_loader $APXS_HTTPD"
5860
PHP_SUBST(MH_BUNDLE_FLAGS)
5961
SAPI_SHARED=libs/libphp4.so
60-
PHP_SELECT_SAPI(apache, bundle, sapi_apache.c mod_php4.c php_apache.c, -I$APXS_INCLUDEDIR)
62+
build_type=bundle
6163
;;
6264
*)
63-
PHP_SELECT_SAPI(apache, shared, sapi_apache.c mod_php4.c php_apache.c, -I$APXS_INCLUDEDIR)
65+
build_type=shared
6466
;;
6567
esac
6668
69+
PHP_SELECT_SAPI(apache, $build_type, sapi_apache.c mod_php4.c php_apache.c, $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR)
70+
6771
# Test whether apxs support -S option
6872
$APXS -q -S CFLAGS="$APXS_CFLAGS" CFLAGS >/dev/null 2>&1
6973

0 commit comments

Comments
 (0)