aboutsummaryrefslogtreecommitdiff
path: root/lib/Makefile
diff options
context:
space:
mode:
authorMilutin Jovanovic <jovanovic.milutin@gmail.com>2012-02-16 11:24:14 -0500
committerMilutin Jovanovic <jovanovic.milutin@gmail.com>2012-02-16 11:24:14 -0500
commit6e13c35334200e7ef918308aeb820404d7b35283 (patch)
treeed2b53bf44a284486685397ad459d737c10241af /lib/Makefile
parent8ca8b08890c220a9e238c711aef96b49727e80f0 (diff)
downloadtinycc-6e13c35334200e7ef918308aeb820404d7b35283.tar.gz
tinycc-6e13c35334200e7ef918308aeb820404d7b35283.tar.bz2
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.
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 071c49f..b14f8b5 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -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