Use arm-specific version of 'ar' instead of system one
[fw/pdclib] / 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