[MacPorts] #48857: gcc ports: support compiling multiple archs (universal) using the Apple GCC driver

MacPorts noreply at macports.org
Thu Oct 29 08:22:55 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                          |
-------------------------------------------------+-------------------------

Comment (by frederic.devernay@…):

 Basically, it's just a *single* C file (driverdriver.c) that
 - runs the standard gcc-mp-4.8 (or whichever version it was compiled for)
 for each arch
 - runs lipo to make a fat object
 It's as simple as that.

 John added many things to the project (such as Xcode templates), but only
 driverdriver.c (which is from Apple) is useful for macports. John made
 very few modifications to driverdriver.c

 Since it's a single file, it could be compiled and installed by every gcc
 port, it could be named gcc-mp-driver-4.8 or whatever, and it could be
 used by macport when using gcc, instead of gcc-mp-4.8.

 I'm using it everyday to build universal Qt programs compiled with gcc-
 mp-4.8 (to get OpenMP support) and it works like a charm.

 This would solve many issues with universal ports...

 Concerning integration into GCC: Apple did that a long time ago, and it
 never was incorporated in the gcc sources. The GCC guys are very picky,
 and I am pretty sure they won't integrate anything that depends on
 external binaries (namely lipo), or that are specific to a few arch's.

-- 
Ticket URL: <https://trac.macports.org/ticket/48857#comment:3>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list