Re: One solution for error loading mod_webkit on a Core 2 Duo
"Alexander Southgate" <[email protected]> Fri, 14 Mar 2008 16:28:57 -0700
| Newsgroups | gmane.comp.python.webware |
|---|---|
| Message-ID | <[email protected]> |
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/