On 1/21/10 7:12 PM, Sean Nelson wrote:
Acked-by: Sean Nelson audiohacked@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.ht...
Oh, sorry for the missing explanation... in my case the reason was the following: 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.
Stefan