Hello, Does anyone know how to build LLVM for the i386 architecture
with snow leopard (this seems to have been the default for leopard).
I've tried building with:
./configure CFLAGS="-arch i386" CXXFLAGS="-arch i386" LDFLAGS="-arch
i386" OBJCFLAGS="-arch i386" --prefix=/Users/keith/share/
--enable-shared --enable-jit && make
but I still end up with x86_64 binaries.
Thanks, Keith
Hi Keith,
Hello, Does anyone know how to build LLVM for the i386 architecture
with snow leopard (this seems to have been the default for leopard).
I've tried building with:
./configure CFLAGS="-arch i386" CXXFLAGS="-arch i386" LDFLAGS="-arch
i386" OBJCFLAGS="-arch i386" --prefix=/Users/keith/share/
--enable-shared --enable-jit&& make
but I still end up with x86_64 binaries.
to get this effect on Linux I configure LLVM with --build=i686-pc-linux-gnu and
do
export CC="gcc -m32"
export CXX="g++ -m32"
Ciao, Duncan.
Thanks Duncan,
Incase anyone else is trying to do this, I was able to use Duncan's
hint plus the docs at
Home · graydon/rust Wiki · GitHub to come up with:
CXX='g++ -m32' CC='gcc -m32' CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32
./configure --disable-bindings --build=i686-apple-darwin
--host=i686-apple-darwin --target=i686-apple-darwin
--enable-targets=x86,x86_64,cbe --enable-optimized --enable-shared
--enable-jit
I don't know if all of these flags are needed but it works
-Keith