diff options
author | Sascha Schumann <sas@php.net> | 1999-12-24 15:56:40 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-12-24 15:56:40 +0000 |
commit | fc6c531ec27b8cf9002ead53707b1626e8c31f74 (patch) | |
tree | fcd5fc947d0abcfa8339e2c427c32ca2039f3f44 /sapi | |
parent | 0ef049d70726a5c29ab6e0a7d0fd7ac1a7e3c22f (diff) | |
download | php-git-fc6c531ec27b8cf9002ead53707b1626e8c31f74.tar.gz |
Add -rdynamic, if supported by gcc and static Apache build is used
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/apache/config.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sapi/apache/config.m4 b/sapi/apache/config.m4 index 626eaae52f..5d94ff5f40 100644 --- a/sapi/apache/config.m4 +++ b/sapi/apache/config.m4 @@ -1,5 +1,15 @@ dnl ## -*- sh -*- +AC_DEFUN(PHP_APACHE_CHECK_RDYNAMIC,[ + if test -n "$GCC"; then + dnl we should use a PHP-specific macro here + TSRM_CHECK_GCC_ARG(-rdynamic, gcc_rdynamic) + if test "$gcc_rdynamic" = "yes"; then + PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic" + fi + fi +]) + AC_MSG_CHECKING(for Apache module support via DSO through APXS) AC_ARG_WITH(apxs, [ --with-apxs[=FILE] Build shared Apache module. FILE is the optional @@ -195,6 +205,7 @@ if test -n "$APACHE_MODULE"; then APACHE_WANT_HSREGEX=no fi AC_SUBST(APACHE_WANT_HSREGEX) + PHP_APACHE_CHECK_RDYNAMIC PHP_EXTENSION(apache) PHP_OUTPUT(sapi/apache/libphp4.module) PHP_BUILD_STATIC |