[MacPorts] #37732: cmake portgroup needs an option to disable use of CMAKE_OSX_ARCHITECTURES
MacPorts
noreply at macports.org
Fri Mar 20 07:26:41 PDT 2015
#37732: cmake portgroup needs an option to disable use of CMAKE_OSX_ARCHITECTURES
----------------------+--------------------------------
Reporter: mojca@… | Owner: macports-tickets@…
Type: defect | Status: reopened
Priority: High | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: |
----------------------+--------------------------------
Comment (by rjvbertin@…):
Replying to [comment:14 mojca@…]:
> The CMake developers have confirmed the bug but aren't likely to act on
it any time soon. CMake simply applies the flag to any given compiler on
Mac OS X when CMAKE_OSX_ARCHITECTURES is present:
http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/5876.
Is the location in the CMake source code (or the core .cmake files) where
this happens identified? IIUC correcting the issue would require adding a
list of compilers that don't understand the -arch flag, and take
appropriate action for those?
Alternatively, how about replacing `-arch i386` with `-m32` and `-arch
x86_64` with `-m64` for GCC compilers, on OS X versions where clang is the
default (10.7 and higher)?
The original comment states
> It seems that one can use -m32 with both to get 32-bit i386 binaries,
but I cannot try it out without recompiling gcc with +universal and I
don't know yet how to make universal binaries with that approach.
is that because of (runtime) libraries that must be present in 32bit
version?
--
Ticket URL: <https://trac.macports.org/ticket/37732#comment:23>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list