[MacPorts] #48857: gcc ports: support compiling multiple archs (universal) using the Apple GCC driver
MacPorts
noreply at macports.org
Mon Sep 14 17:36:35 PDT 2015
#48857: gcc ports: support compiling multiple archs (universal) using the Apple GCC
driver
-------------------------------------------------+-------------------------
Reporter: frederic.devernay@… | Owner: mww@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: gcc43 gcc44 gcc45 gcc46 gcc47 |
gcc48 gcc49 gcc5 gcc6 |
-------------------------------------------------+-------------------------
Changes (by ryandesign@…):
* cc: ryandesign@… (added)
* port: gcc46 gcc47 gcc48 gcc49 => gcc43 gcc44 gcc45 gcc46 gcc47 gcc48
gcc49 gcc5 gcc6
Comment:
Although I could not find a prior MacPorts ticket for this, the idea has
been mentioned many times before. And although I would welcome this
feature, it's unclear how to use John's contributions to provide it. It
seems to be organized as a separate project, rather than a set of patches
that could be applied to the existing gcc source code. It also seems as
though John's instructions rely on the user moving or renaming the
compilers installed by the MacPorts gcc ports.
At least some of his information is also out of date. One of the problems
mentioned in the blog post is the lack of support for the `-arch` flag in
gcc 4.6. Support for the `-arch` flag was added in gcc 4.7.
It's not MacPorts' job to extend other people's projects. If this feature
is desired, John or you or someone should work with the developers of gcc
to incorporate it into the gcc sources. That way, every Mac user, not just
those who get their copy of gcc from MacPorts, would benefit.
He also mentions a way to get Xcode to recognize MacPorts compilers. This
too has been previously brought to MacPorts' attention. I would welcome
this as well, not just for the benefit of users wishing to use gcc in
Xcode for their own projects, but for MacPorts itself; we have some ports
that use Xcode to build, but that require either a newer or older version
of clang than Xcode provides; there is currently no way to build these
projects because there is no way to tell Xcode to use a MacPorts clang
compiler.
--
Ticket URL: <https://trac.macports.org/ticket/48857#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list