[MacPorts] #32785: arm-elf-binutils @2.21.52.0.2 - Build Failure

Joshua Root jmr at macports.org
Thu Mar 1 06:53:02 PST 2012


On 2012-3-1 20:35 , Andrea D'Amore wrote:
> On Wed, Feb 29, 2012 at 16:17, Ryan Schmidt <ryandesign at macports.org> wrote:
>>> I understand those are conceptually dfferent, but shouldn't CFLAGS
>>> have -I${prefix}/include as well by default?
>>
>> I don't see any reason to do so.
> 
> I do, I was mixing CPATH and CFLAGS roles.
> 
> The point seems to be that clang honors CPATH since november 2011 [1]
> and probably the compiler shipped with xcode 4.3 is past that.
> I'd suggest to patch behavior in portconfigure to add
> -I${prefix}/include and -L${prefix}/lib to CFLAGS and LDFLAGS [2] if
> the compiler is from Xcode 4.2.
> 
> If this sounds right to go into base, I'll patch it.

No, that is not right. We already have those flags in configure.cppflags
and configure.ldflags, which become CPPFLAGS and LDFLAGS in the environment.

- Josh


More information about the macports-dev mailing list