I have been trying to compile up sdlmame for the pcduino (arm) however keep running out of space so I decided to have a go at cross compiling. I’ve setup the cross compiler and done a compile test on uboot and all seems ok but when compiling sdlmame I get a mame64 which the Linux file command shows as “mame64: ELF 64-bit LSB executable, x86-64,”

From what I can see the make file is looking at the uname –a results to autodetect the architecture and setting the ARCH environment variable doesn’t seem to override. Are there any parameters that I should be using or is there another trick to it?