[PATCH] Get apache2filter to link on Darwin

From: Date: Sun, 05 May 2002 09:21:31 +0000
Subject: [PATCH] Get apache2filter to link on Darwin
Groups: php.dev 
Request: Send a blank email to php-dev+get-83711@lists.php.net to get a copy of this message
By default, Darwin requires that all references be resolved at compile-time instead of run-time for bundles. So, when we try to build the apache2filter module, we are calling some APR and APR-util functions from the module. Since apxs does not expose the linking information for APR or APR-util, we must suppress the linker from trying to ensure that the module is self-contained. We could also do '-flat_namespace -undefined warning' instead, but I think it might be better to do '-bind_at_load' from my interpretation of the man page. -- justin Index: sapi/apache2filter/config.m4 =================================================================== RCS file: /repository/php4/sapi/apache2filter/config.m4,v retrieving revision 1.13 diff -u -r1.13 config.m4 --- sapi/apache2filter/config.m4 26 Apr 2002 21:26:47 -0000 1.13 +++ sapi/apache2filter/config.m4 5 May 2002 09:14:57 -0000 @@ -57,7 +57,7 @@ INSTALL_IT="$APXS -i -a -n php4 $SAPI_LIBTOOL" ;; *darwin*) - MH_BUNDLE_FLAGS="-bundle -bundle_loader $APXS_HTTPD" + MH_BUNDLE_FLAGS="-bind_at_load -bundle -bundle_loader $APXS_HTTPD" PHP_SUBST(MH_BUNDLE_FLAGS) PHP_SELECT_SAPI(apache2filter, bundle, sapi_apache2.c apache_config.c php_functions.c) SAPI_SHARED=libs/libphp4.so

« previous php.dev (#83711) next »