Re: shared library suffixes (was: iconv, OS X and .dylib)
| From: | Andrei Zmievski | Date: | Tue, 04 Apr 2006 06:37:27 +0000 |
| Subject: | Re: shared library suffixes (was: iconv, OS X and .dylib) | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-22662@lists.php.net to get a copy of this message | ||
On Apr 3, 2006, at 9:26 PM, Christian Stocker wrote:
On 4.4.2006 3:40 Uhr, Andrei Zmievski wrote:Can people please try this patch: http://www.php.net/~andrei/shlib.diff It works on my Mac but we need to make sure it doesn't break build/dl() process for shared extensions on other platforms. -AndreiThe 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.