richfelker / musl-cross-make

Simple makefile-based build for musl cross compiler
MIT License
1.3k stars 266 forks source link

Configuration assist how to build for arm eabi4 #178

Open tgbourget opened 12 months ago

tgbourget commented 12 months ago

I'm trying to create a tool chain for an old arm926ej NAS. The firmware is using EABI4. I just get segfault with any executable I build with gcc-arm-linux-gnueabi.

I tried just adding CFLAGS=-Wa,-meabi=4 to the COMMON_CONFIG, but that also affects the host compiler so it didn't go very far at all.

I found CFLAGS_FOR_TARGET would change some things, but not all.

Do you have a systematic way to add CFLAGS to pass to all the cross tools?