Attempt to fix 32 bit OSX build. The fix consists of adding -m32 and -m64

to the appropriate CFLAGS. In addition, memory hooks are very different
on OSX, so build of bcheck.c had to be disabled for now.

Change of the CFLAGS does affect builds on other platforms, and this needs
to be tested.
This commit is contained in:
Milutin Jovanovic
2012-02-16 11:24:14 -05:00
parent 8ca8b08890
commit 6e13c35334
2 changed files with 9 additions and 4 deletions

View File

@ -14,11 +14,11 @@ ifndef TARGET
else
ifeq ($(ARCH),i386)
TARGET = i386
XCC = gcc -O2
XCC = gcc -O2 -m32
else
ifeq ($(ARCH),x86-64)
TARGET = x86_64
XCC = gcc -O2
XCC = gcc -O2 -m64
endif
endif
endif