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

Joshua Root jmr at macports.org
Wed Feb 29 05:56:19 PST 2012


On 2012-2-29 20:43 , Andrea D'Amore wrote:
> On this topic Guide suggests configure.enf defaults to
> "CFLAGS=-I${prefix}/include …" but configure.cflags defualt is
> configure.optflags, and this ends in CFLAGS being "-O2 <add arch
> flags>".

The Guide is wrong on this point.

> Should configure.cppflags be added to configure.cflags in portconfigure.tcl?

No, CPPFLAGS is a different thing to CFLAGS. You do need to append the
former to the latter for some build systems that don't recognise both.

- Josh


More information about the macports-dev mailing list