]> granicus.if.org Git - php/commitdiff
Add -rdynamic, if supported by gcc and static Apache build is used
authorSascha Schumann <sas@php.net>
Fri, 24 Dec 1999 15:56:40 +0000 (15:56 +0000)
committerSascha Schumann <sas@php.net>
Fri, 24 Dec 1999 15:56:40 +0000 (15:56 +0000)
sapi/apache/config.m4

index 626eaae52ff25adc11f1f2ba149d4958c358e135..5d94ff5f40104ed8cca0519995c9c05defddc924 100644 (file)
@@ -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