commit 5644938d9905053714a03d854f4596b3f8291149 parent 0192bda68b2d637ae9b6998b956720b959b63e83 Author: npe@mori.local <none@none> Date: Sun, 7 Nov 2010 16:39:17 -0800 ifeq'ed makefile for darwin only flags Diffstat:
M | src/Makefrag | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/Makefrag b/src/Makefrag @@ -5,7 +5,10 @@ COMMON_CFLAGS = -g -O2 -MD -std=gnu99 -I. -fno-stack-protector $(CFLAGS) COMMON_LDFLAGS = -g -L. $(LDFLAGS) # Host environment compiler options -HOST_CC := $(CC) -fno-inline -D_XOPEN_SOURCE -arch i386 -m32 +HOST_CC := $(CC) -fno-inline +ifeq ($(OS),darwin) + HOST_CC := $(HOST_CC) -D_XOPEN_SOURCE -arch i386 -m32 +endif HOST_LD := $(LD) -arch i386 HOST_AR := $(AR) HOST_LDFLAGS := $(COMMON_LDFLAGS)