Opened 11 years ago
Last modified 11 years ago
#39523 closed defect
zlib doesn't build when clang is the default compiler (/usr/bin/cc) — at Initial Version
Reported by: | daniel@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | haspatch | Cc: | jeremyhu@… |
Port: | zlib |
Description
When Clang is used as the default compiler (i.e., /usr/bin/cc) then the zlib configure script may fail to properly detect that the compiler is "gcc"-like. This in turn causes the configure script to follow a slightly different code path which then fails to properly compute the shared library extension on Darwin.
This is effectively the same problem as:
but when the compiler path doesn't include clang in it.
The attached patch (also submitted upstream to zlib maintainers) fixes the problem by patching the configure script.
Change History (1)
Changed 11 years ago by daniel@…
Attachment: | 0001-zlib-Build-fix-for-using-clang-as-default-compiler.patch added |
---|
Note: See
TracTickets for help on using
tickets.