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:

http://trac.macports.org/ticket/28656

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)

Note: See TracTickets for help on using tickets.