richfelker / musl-cross-make

Simple makefile-based build for musl cross compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configuration assist how to build for arm eabi4

tgbourget opened this issue · comments

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?