we need a patch to handle pdclib change debian/1.6.8-2
authorBdale Garbee <bdale@gag.com>
Sun, 2 Oct 2016 23:56:45 +0000 (17:56 -0600)
committerBdale Garbee <bdale@gag.com>
Sun, 2 Oct 2016 23:56:45 +0000 (17:56 -0600)
debian/patches/pdclib-use-target-ar.diff [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]

diff --git a/debian/patches/pdclib-use-target-ar.diff b/debian/patches/pdclib-use-target-ar.diff
new file mode 100644 (file)
index 0000000..b050707
--- /dev/null
@@ -0,0 +1,21 @@
+diff --git a/pdclib/Makefile b/pdclib/Makefile
+index 97da5cc..cca5a4f 100644
+--- a/pdclib/Makefile
++++ b/pdclib/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
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..bb3937e
--- /dev/null
@@ -0,0 +1 @@
+pdclib-use-target-ar.diff