port only builds with build_arch=i386 on command line -- any way to specify that in the portfile?

Ryan Schmidt ryandesign at macports.org
Sat Sep 3 07:08:28 PDT 2016


> On Sep 3, 2016, at 12:28 AM, Lawrence Velázquez <larryv at macports.org> wrote:
> 
>> # ----------- CONFIGURATION -------------
>> # no idea if this is the best optimization we can do -- direct from the gcc makefile
>> 
>> configure.cppflags		-g -O2
> 
> Does this actually do anything? Passing debug and optimization flags to the preprocessor doesn't really make sense.
> 
>> configure.cxxflags		-g -O2

If you want to change the optimization flags, set e.g. "configure.optflags -O2". MacPorts will automatically add it to cflags, cxxflags, and other appropriate flags.

But only do this if this software requires it. Otherwise, let MacPorts use its default value of -Os.



More information about the macports-dev mailing list