From: Keith Packard Date: Thu, 22 Sep 2016 00:16:23 +0000 (+0300) Subject: Use arm-specific version of 'ar' instead of system one X-Git-Url: https://git.gag.com/?p=fw%2Fpdclib;a=commitdiff_plain;h=3e68419ad3ca3237ca16de4cf2a967f04129fe33;hp=bd33f6640cf5882f8630766a9acdd1bc420a9dda 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 --- 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