[Gc] Building universal on MacOSX

Andrew Begel abegel at andysean.com
Tue Oct 24 11:26:12 PDT 2006

Can the current gc6.8 or gc 7.0 build scripts be used to build a  
universal libgc binary on MacOSX 10.4? I tried adding the appropriate  
lines to configure.in,
	CFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
	CXXFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/ 
	LDFLAGS="-arch ppc -arch i386"

ran autoconf, configure --disable-dependency-tracking (as mentioned  
in an Apple Tech Note to get libtool to work properly).

In gc6.8, almost everything compiled, but when it got to  
powerpc_darwn_mach_dep.s, it failed, since well, it can't compile PPC  
code to i386. In gc7.0, everything compiled and linked, but the  
resulting libgc.dylib binary is PPC only, as if the link flags  
weren't passed by libtool to gcc (the options *were* passed to libtool).

Is there any way to fix this?


More information about the Gc mailing list