On May 24, 2012 15:24:10 PDT, Yves Arrouye wrote:
How can I do that? Just trying to pass arch flags in CFLAGS/LDFLAGS is not working:% make make all-recursive Making all in libusb CC libusb_1_0_la-core.lo llvm-gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags It does not help that the full command-line isn't displayed (how can I see that instead of the fake command lines here, by the way)... And I looked in configure --help for anything mentioning universal or arch and did not see anything. I'd rather not have to build twice and lipo everything together, and also am not sure what would then happen to the *.la etc. files that only knew about one arch. YA
cd /tmp git clone git://libusbx.git.sourceforge.net/gitroot/libusbx/libusbx cd libusbx git log -1 --oneline # a544e59 Misc: Ensure all sources are UTF-8 ./autogen.sh CFLAGS='-O2 -arch x86_64 -arch i386 -arch ppc' \ ./configure --disable-dependency-tracking make lipo -detailed_info libusb/.libs/libusb-1.0.0.dylib # Fat header in: libusb/.libs/libusb-1.0.0.dylib # fat_magic 0xcafebabe # nfat_arch 3 # architecture x86_64 # cputype CPU_TYPE_X86_64 # cpusubtype CPU_SUBTYPE_X86_64_ALL # offset 4096 # size 65032 # align 2^12 (4096) # architecture i386 # cputype CPU_TYPE_I386 # cpusubtype CPU_SUBTYPE_I386_ALL # offset 69632 # size 60468 # align 2^12 (4096) # architecture ppc7400 # cputype CPU_TYPE_POWERPC # cpusubtype CPU_SUBTYPE_POWERPC_7400 # offset 131072 # size 61084 # align 2^12 (4096)The magic configure option you must not forget when doing this is -- disable-dependency-tracking. Add an "LDFLAGS='-Wl,- force_cpusubtype_ALL'" if you want to force the ppc subtype to be CPU_SUBTYPE_POWERPC_ALL instead.
--Kyle
------------------------------------------------------------------------------ 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