On 08/28/2012 03:28 AM, Jonathan Kew wrote: > On 28/8/12 07:56, Adam Twardoch (List) wrote: >> >> When I try to do the "standard thing" on Mac OS X (using harfbuzz >> 0.9.3), which is run ./configure like that: >> >> CFLAGS=" -Os -arch i386 -arch x86_64" CPPFLAGS=" -Os -arch i386 -arch >> x86_64" CXXFLAGS=" -Os -arch i386 -arch x86_64" ./configure >> >> I get: >> >> checking how to run the C preprocessor... /lib/cpp >> configure: error: in >> `/Volumes/GuildensternHD2/adam/Dropbox/adam/Documents/FontLab/_Ins_OSS/harfbuzz/harfbuzz-0.9.3': >> >> configure: error: C preprocessor "/lib/cpp" fails sanity check >> See `config.log' for more details > > FWIW, if you remove the CPPFLAGS setting and just specify CFLAGS and CXXFLAGS, > then configure runs successfully. > > However, gcc then complains at compile time: > > g++-4.2: -E, -S, -save-temps and -M options are not allowed with multiple > -arch flags > > So that didn't get us very much further...
This gets it all compiled: ./configure CFLAGS="-arch i386 -arch x86_64" CXXFLAGS="-arch i386 -arch x86_64" --disable-dependency-tracking So, while it's all Chinese to me, I hope this helps others... behdad _______________________________________________ HarfBuzz mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/harfbuzz
