[MacPorts] #24778: please add mcpu (march is only for x86)
MacPorts
noreply at macports.org
Tue May 4 04:04:58 PDT 2010
#24778: please add mcpu (march is only for x86)
------------------------------------------+---------------------------------
Reporter: randomshinichi4869@… | Owner: macports-tickets@…
Type: enhancement | Status: new
Priority: Normal | Milestone: MacPorts 1.9.0
Component: base | Version: 1.8.2
Keywords: gcc, optimization | Port:
------------------------------------------+---------------------------------
Hello,
I saw that there was a ticket here before that proposed adding mcpu, but
the author couldn't really say what was the difference between mcpu and
march, so let me state why mcpu is needed:
On any architecture other than x86/x86-64 (and it seems ARM too), march,
which means to generate code that will run only on the CPU specified, will
not work. For the same function, you need mcpu, march=G5 will not work.
mcpu on x86/x86-64 is basically mtune, which means generate code that is
not architecture specific.
Basically:[[BR]]
x86/x86-64 PowerPC[[BR]]
march=mcpu[[BR]]
mcpu=mtune[[BR]]
I also propose that a general purpose dumping ground for compiler flags
and linker flags a la Gentoo's /etc/make.conf CFLAGS and LDFLAGS be
implemented, so that I don't have to file a ticket every time I find that
macports.conf doesn't let you specify a certain compiler flag.
--
Ticket URL: <http://trac.macports.org/ticket/24778>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list