[MacPorts] #19679: llvm 2.5 port fails to support Link Time Optimization
MacPorts
noreply at macports.org
Sat Feb 6 19:57:50 PST 2010
#19679: llvm 2.5 port fails to support Link Time Optimization
-------------------------------+--------------------------------------------
Reporter: macports@… | Owner: erickt@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.7.1
Keywords: llvm lto | Port: llvm llvm-gcc42
-------------------------------+--------------------------------------------
Comment(by macports@…):
Recently I tried to setup the llvm-gcc42 port to use /Developer/usr/bin/ld
in Snow Leopard. It turned out that the mismatch between the different
versions of llvm really does cause problems. It worked with llvm 2.6 and
Leopard, but breaks with llvm 2.6 and Snow Leopard. This effectively kills
option B) and C).
Now if we consider modifications outside of /opt/local to be prohibited
then we are left with option D) as the only viable solution. I didnt
realize there is already a port that provides a custom ld_classic/ld64 in
macports: odcctools. That port looks severely outdated though and will
suffer under the same inability to build the 10.6 version of ld64. But the
10.5 version of ld64 could be sufficient to support LTO.
So I guess the solution is D) to wait for a resurrection of the odcctools
port with support for LTO and perhaps offer A) as an optional variant for
the llvm port. I have attached a patch to introduce such a "global_lto"
variant and filed #23580 to track the issue with odcctools.
--
Ticket URL: <http://trac.macports.org/ticket/19679#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list