This TN describes exactly what I am doing: passing -arch flags in compiler flags. However, this does not work with libusbx, apparently because those flags are passed to a cc -E or -M command. An example showing the issue is:
% cc -E -arch i386 -arch x86_64 llvm-gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags % Which makes sense given that the preprocessor output might differ between the two architectures. The solution might be to file a bug against automake or libtool or etc. which probably should rely on CPPFLAGS only when calling $(CC) with -E or -M. YA On Thu, May 24, 2012 at 4:39 PM, Sean McBride <s...@rogue-research.com> wrote: > On Thu, 24 May 2012 15:24:10 -0700, Yves Arrouye said: > >>How can I do that? Just trying to pass arch flags in CFLAGS/LDFLAGS is >>not working: > > Apple's Technical Note TN2137 describes how to get universal binaries working > in autoconf projects. The document seems to have disappeared however. :( > But you can see it here: > > <http://web.archive.org/web/20090519041846/http://developer.apple.com/technotes/tn2005/tn2137.html> > > If other autoconf projects can do it, I'm not sure why libusbx can't. > > This would be much easier with CMake.... :) > > -- > ____________________________________________________________ > Sean McBride, B. Eng s...@rogue-research.com > Rogue Research www.rogue-research.com > Mac Software Developer Montréal, Québec, Canada > > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel