[67257] trunk/dports/devel/libcryptopp/Portfile

Ryan Schmidt ryandesign at macports.org
Mon May 3 22:52:55 PDT 2010


On May 4, 2010, at 00:49, Raphael Straub wrote:

> Ryan Schmidt wrote:
>> On May 3, 2010, at 10:57, raphael at macports.org wrote:
>> 
>>> Revision: 67257
>>>        http://trac.macports.org/changeset/67257
>>> Author:   raphael at macports.org
>>> Date:     2010-05-03 08:57:46 -0700 (Mon, 03 May 2010)
>>> Log Message:
>>> -----------
>>> libcryptopp: respect build_arch; fixes #24760
>> 
>>> +build.env-append    CXXFLAGS="-arch ${build_arch}"
>> 
>>> +    build.env-delete    CXXFLAGS="-arch ${build_arch}"
>> 
>> FYI, MacPorts provides the variable ${configure.cxx_archflags} for this purpose.
> 
> Thanks, I'll change that. I tried ${configure.cxxflags} before, but that did not work. Does anybody know why? Maybe because I use "use_configure no"?

configure.cxxflags does not contain configure.cxx_archflags. MacPorts sets CXXFLAGS to configure.cxxflags *plus* configure.universal_cxxflags (if building universal) or configure.cxx_archflags (if not building universal) at configure time. Since you disable the configure phase, you have to replicate that behavior yourself.

> By the way, ${configure.cxx_archflags} is not mentioned in the guide.

Many things aren't. You could file documentation request tickets about this, even better if you can supply patches to the documentation.



More information about the macports-dev mailing list