From 3e68419ad3ca3237ca16de4cf2a967f04129fe33 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 22 Sep 2016 03:16:23 +0300 Subject: [PATCH] Use arm-specific version of 'ar' instead of system one I suspect this may be causing problems building arm binaries on mips and mipsel hosts. Signed-off-by: Keith Packard --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 97da5cc..cca5a4f 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,7 @@ endif #CC=$(bindir)/arm-none-eabi-gcc CC=/usr/bin/arm-none-eabi-gcc +AR=/usr/bin/arm-none-eabi-ar # This is where you chose which platform to compile for (see 'make links' / './platform') PLATFORM := altos @@ -98,7 +99,7 @@ check: all testdrivers regtestdrivers $(PDCLIB): $(BUILD) $(OBJFILES) @echo " AR $@" - @ar rc $@ $(OBJFILES) + @$(AR) rc $@ $(OBJFILES) @echo install-$(CPU): install-$(CPU)-lib install-hdr -- 2.30.2