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

Andrea D'Amore and.damore at macports.org
Thu Mar 1 01:35:02 PST 2012


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.

-- 
Andrea

[1] http://llvm.org/bugs/show_bug.cgi?id=8971#c6
[2] http://llvm.org/bugs/show_bug.cgi?id=10296


More information about the macports-dev mailing list