On Fri, Mar 14, 2008 at 6:32 AM, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: > Can you check whether it is possible to replace the line > > CFLAGS=-Wc,"-arch x86_64" -Wc,"-arch ppc" -Wc,"-arch i386" > with the following (I guess yes): > CFLAGS=-Wc,"-arch x86_64 -arch ppc -arch i386"
Yes this works > or even this (I guess no): > CFLAGS=-Wc,"-arch x86_64 ppc i386" No this doesn't work > > Can you check whether the line > > LDFLAGS=-arch x86_64 -arch ppc -arch i386 > is really correct? I think it should be > LDFLAGS=-Wl,"-arch x86_64 -arch ppc -arch i386" > Actually I think you should remove this line completely, only the > compiler has this option, not the linker. If I remove this line completely the lib only gets compiled for i386. If I specify -WI"..." only i386 and ppc are built for some reason: $ make clean; make; file .libs/mod_webkit.so rm -rf *.o *.lo *.slo *.la .libs /usr/sbin/apxs -c -Wc,"-arch x86_64 -arch ppc -arch i386" -o mod_webkit.la mod_webkit.c marshal.c -WI,"-arch x86_64 -arch ppc -arch i386" /usr/share/apr-1/build-1/libtool --silent --mode=compile gcc -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I/usr/include/apache2 -I/usr/include/apr-1 -I/usr/include/apr-1 -arch x86_64 -arch ppc -arch i386 -c -o mod_webkit.lo mod_webkit.c && touch mod_webkit.slo /usr/share/apr-1/build-1/libtool --silent --mode=compile gcc -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I/usr/include/apache2 -I/usr/include/apr-1 -I/usr/include/apr-1 -arch x86_64 -arch ppc -arch i386 -c -o marshal.lo marshal.c && touch marshal.slo /usr/share/apr-1/build-1/libtool --silent --mode=link gcc -o mod_webkit.la -rpath /usr/libexec/apache2 -module -avoid-version marshal.lo mod_webkit.lo -WI,-arch x86_64 -arch ppc -arch i386 $ file .libs/mod_webkit.so .libs/mod_webkit.so: Mach-O universal binary with 2 architectures .libs/mod_webkit.so (for architecture ppc7400): Mach-O bundle ppc .libs/mod_webkit.so (for architecture i386): Mach-O bundle i386 So I think the provided LDARGS is correct (or at least does the trick). > Also, can you check what you get with > apxs -q CFLAGS > Maybe these options can be autodetected? I think the main issue is that apxs is not properly detecting these arguments. Querying for both CFLAGS and LDFLAGS returns an empty string. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss