Re: [PATCH] Get apache2filter to link on Darwin
| From: | Justin Erenkrantz | Date: | Sun, 05 May 2002 09:45:06 +0000 |
| Subject: | Re: [PATCH] Get apache2filter to link on Darwin | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-83714@lists.php.net to get a copy of this message | ||
On Sun, May 05, 2002 at 02:21:31AM -0700, Justin Erenkrantz wrote:
> 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
It does seem that '-flat_namespace -undefined warning' is the
preferred way to do this. I don't know how that'd fit into
any OS X bundling plans (I just saw Marko's post about bundles).
So, please disregard my earlier patch to use '-bind_at_load' -
the proper way seems to be switching to flat namespaces.
(Fred's discussed on the APR list that we should just use
flat namespaces.)
Thoroughly confused. -- justin