Re: shared library suffixes

From: Date: Tue, 04 Apr 2006 08:20:23 +0000
Subject: Re: shared library suffixes
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-22663@lists.php.net to get a copy of this message
On 4.4.2006 8:37 Uhr, Andrei Zmievski wrote:
On Apr 3, 2006, at 9:26 PM, Christian Stocker wrote:
On 4.4.2006 3:40 Uhr, Andrei Zmievski wrote:
The problem is that SHLIB_SUFFIX_NAME is used for both bundles (.so) and dynamic libraries (.dylib) on Mac OS X. These are separate entities and need to be treated separately. We could probably set SHLIB_SUFFIX_NAME to .dylib on OSX and introduce an additional variable, something like BUNDLE_SUFFIX_NAME and set it to .so. The problem is in main.c where it registers PHP_SHLIB_SUFFIX: which define should it use?
BUNDLE_SUFFIX_NAME sounds fine to me. But can we please revert your patch for 5.1.3? (Or introduce the proposed new variable). It doesn't configure at all right now on OS X.
Can people please try this patch: http://www.php.net/~andrei/shlib.diff
If I change PHP_SHLIB_BUILD_SUFFIX_NAME to PHP_BUILD_SHLIB_SUFFIX_NAME in acinclude.m4 line 1885 it works for me too (on OS X) chregu
It works on my Mac but we need to make sure it doesn't break build/dl() process for shared extensions on other platforms. -Andrei
-- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 44 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | christian.stocker@bitflux.ch | GPG 0x5CE1DECB

« previous php.internals (#22663) next »