specify -arch explicitly to compiler and liner on OS X

On 10.6 the compiler generates x86_64 code by default, even though uname -m reports "i386", so we have to be explicit
This commit is contained in:
Joel Dice 2009-11-03 16:07:13 -07:00
parent d56713dc13
commit ef9c1ee32c

View File

@ -159,6 +159,18 @@ ifeq ($(platform),darwin)
strip-all = -S -x
so-suffix = .jnilib
shared = -dynamiclib
ifeq ($(arch),powerpc)
cflags += -arch ppc
asmflags += -arch ppc
lflags += -arch ppc
endif
ifeq ($(arch),i386)
cflags += -arch i386
asmflags += -arch i386
lflags += -arch i386
endif
endif
ifeq ($(platform),windows)