enable i686-apple-darwin8 cross compile

This commit is contained in:
Joel Dice 2011-02-17 17:39:41 -07:00
parent 59183c7821
commit 1ca8a20731

View File

@ -215,9 +215,20 @@ ifeq ($(arch),arm)
endif
ifeq ($(platform),darwin)
ifneq ($(build-platform),darwin)
cxx = i686-apple-darwin8-g++ $(mflag)
cc = i686-apple-darwin8-gcc $(mflag)
ar = i686-apple-darwin8-ar
ranlib = i686-apple-darwin8-ranlib
strip = i686-apple-darwin8-strip
extra-cflags = -I$(JAVA_HOME)/include/linux
else
build-lflags += -framework CoreFoundation
endif
build-cflags = $(common-cflags) $(extra-cflags) -fPIC -fvisibility=hidden \
-I$(src)
version-script-flag =
build-cflags = $(common-cflags) -fPIC -fvisibility=hidden -I$(src)
build-lflags += -framework CoreFoundation
lflags = $(common-lflags) -ldl -framework CoreFoundation \
-framework CoreServices
ifeq ($(bootimage),true)