[MacPorts] #28656: zlib won't build with clang
#28656: zlib won't build with clang --------------------------------+------------------------------------------- Reporter: vince@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: clang | Port: zlib --------------------------------+------------------------------------------- The Zlib configure script expect its compiler to contain the 'gcc' string, otherwise it branches to some default configuration that outputs a .so file (instead of .dylib). The following additional patch makes it work correctly with clang (llvm- gcc-4.2 works since it contains 'gcc'). -- Ticket URL: <https://trac.macports.org/ticket/28656> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28656: zlib won't build correctly with clang (.so output instead of .dylib) --------------------------------+------------------------------------------- Reporter: vince@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: clang | Port: zlib --------------------------------+------------------------------------------- -- Ticket URL: <https://trac.macports.org/ticket/28656#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28656: zlib won't build correctly with clang (.so output instead of .dylib) --------------------------------+------------------------------------------- Reporter: vince@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: clang | Port: zlib --------------------------------+------------------------------------------- Comment(by jmr@…): Is there a reason we need to fix this in the port instead of just sending the patch upstream? We don't currently use clang to build zlib even on 10.7. -- Ticket URL: <https://trac.macports.org/ticket/28656#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28656: zlib won't build correctly with clang (.so output instead of .dylib) --------------------------------+------------------------------------------- Reporter: vince@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: clang | Port: zlib --------------------------------+------------------------------------------- Comment(by vince@…): We could send the patch upstream, of course, but I think it might be wise in the future to allow people to choose between llvm-gcc-4.2 which has, anyhow, a limited lifespan, and clang, which will probably be the only available compiler in the near future. This might at least be useful to maintainers who could spot compilation problems or discrepancies between llvm-gcc-4.2 and clang and report them to the Apple clang team. -- Ticket URL: <https://trac.macports.org/ticket/28656#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28656: zlib won't build correctly with clang (.so output instead of .dylib) ---------------------------------+------------------------------------------ Reporter: vince@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: clang Port: zlib | ---------------------------------+------------------------------------------ Changes (by ryandesign@…): * cc: jeremyhu@… (added) * status: new => closed * resolution: => fixed Comment: r79841 -- Ticket URL: <https://trac.macports.org/ticket/28656#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts