Use arm-specific version of 'ar' instead of system one
authorKeith Packard <keithp@keithp.com>
Thu, 22 Sep 2016 00:16:23 +0000 (03:16 +0300)
committerKeith Packard <keithp@keithp.com>
Thu, 22 Sep 2016 00:19:01 +0000 (03:19 +0300)
I suspect this may be causing problems building arm binaries on mips
and mipsel hosts.

Signed-off-by: Keith Packard <keithp@keithp.com>
Makefile

index 97da5cc892e03a1fab049252dffbdd653a0e3f29..cca5a4f1fc49bdb4ce1f16ebd8c9862379cafd92 100644 (file)
--- 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