enable ARM cross builds

This commit is contained in:
Joel Dice 2010-11-08 20:48:08 -07:00
parent 632e50efe6
commit 51ba49def6

View File

@ -145,8 +145,9 @@ ifeq ($(arch),powerpc)
pointer-size = 4
endif
ifeq ($(arch),arm)
asm = arm
pointer-size = 4
asm = arm
pointer-size = 4
cflags += -Wno-psabi -march=armv5t
endif
ifeq ($(platform),darwin)
@ -179,6 +180,16 @@ ifeq ($(platform),darwin)
endif
endif
ifeq ($(arch),arm)
ifneq ($(arch),$(build-arch))
cxx = arm-linux-gnueabi-g++
cc = arm-linux-gnueabi-gcc
ar = arm-linux-gnueabi-ar
ranlib = arm-linux-gnueabi-ranlib
strip = arm-linux-gnueabi-strip
endif
endif
ifeq ($(platform),windows)
inc = "$(root)/win32/include"
lib = "$(root)/win32/lib"