On Fri, Mar 14, 2008 at 11:35 AM, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: > Ok. (Btw, make sure you have no typos. It should be a lower-case l here, > not an upper-case I.) > > It seems that options without -Wc or -Wl are passed to both compiler and > linker. So probably you can do the following > > FLAGS=-arch x86_64 -arch ppc -arch i386 > > # compile the DSO file > mod_webkit.la: $(SRC) > $(APXS) -c $(FLAGS) -o mod_webkit.la $(DEF) $(SRC)
Just specifying the arch flags doesn't seem to work. I found using the following flags works best, note LDFLAGS doesn't require "-Wl" AFAICT: CFLAGS=-Wc,"-arch x86_64 -arch ppc -arch i386" LDFLAGS="-arch x86_64 -arch ppc -arch i386" . . . $(APXS) -c $(CFLAGS) -o mod_webkit.la $(DEF) $(SRC) $(LDFLAGS) ------------------------------------------------------------------------- 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