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"