[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#8481) macOS shared libraries should be .dylib not .so

ilovezfs@icloud.com wrote:
> Full_Name: ilovezfs
> Version: LMDB_0.9.18
> OS: macOS
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (
> This is in regard to the Homebrew formula for LMDB (See
> https://github.com/Homebrew/homebrew-core/pull/2317). Currently, we are having
> to patch the shared library extensions from .so to .dylib, which is the correct
> file extension on macOS. It would be great if this patch could be removed from
> the formula, which would mean upstream support for automatically setting the
> extension correctly based on platform in the build system.
> This is a pretty common practice, and it would be highly appreciated as we like
> to as little patching as possible to upstream code for maintainability and
> fidelity.
> In particular, we're currently having to do the following replacement:
> ```
>  inreplace "Makefile", ".so", ".dylib"
> ```

Fixed in commit c6510147cee88d182af431c14a61fad6fae18be3

> Here's a typical example of how shared libraries get named on macOS:
> ```
> libiconv.2.4.0.dylib -> libiconv.2.dylib
> libiconv.2.dylib
> libiconv.dylib -> libiconv.2.4.0.dylib
> ```

   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/