[flashrom] [PATCH] Use of CFLAGS and CPPFLAGS

Stefan Reinauer stepan at coresystems.de
Thu Jan 21 21:25:24 CET 2010

On 1/21/10 7:12 PM, Sean Nelson wrote:
> Acked-by: Sean Nelson <audiohacked at gmail.com>
> I had to do a google search on why we should be using CPPFLAGS instead
> of CFLAGS and found this:
> http://www.gnu.org/software/hello/manual/autoconf/Preset-Output-Variables.html
Oh, sorry for the missing explanation... in my case the reason was the
For the OSX packages I build of pciutils and flashrom, I add "-arch i386
-arch x86_64" to the CFLAGS on the make command line in order to create
bi-arch binaries.
However, this does not work when creating dependency files, so the build
process failed very early. The patch separates compiler flags that
influence the preprocessor and those that influence code generation and
changes the compiler calls to combine the two accordingly where needed.
With the patch, flashrom will also recognize and enable libftdi and
libusb on OSX.


coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.dehttp://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866

More information about the flashrom mailing list