From 51ba49def6dda47153a116523b830b2650983b65 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 8 Nov 2010 20:48:08 -0700 Subject: [PATCH] enable ARM cross builds --- makefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index f0dcab31a5..9031e7a628 100644 --- a/makefile +++ b/makefile @@ -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"