]> oss.titaniummirror.com Git - msp430-libc.git/blobdiff - debian/patches/makefile.dpatch
Update debian files for new libc
[msp430-libc.git] / debian / patches / makefile.dpatch
diff --git a/debian/patches/makefile.dpatch b/debian/patches/makefile.dpatch
new file mode 100755 (executable)
index 0000000..bce6b88
--- /dev/null
@@ -0,0 +1,30 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## makefile.dpatch by R. Steve McKown <rsmckown@gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Don't expect toolchain to be in install prefix.
+## DP: Ensure libdir is created.
+
+@DPATCH@
+diff -urNad msp430-libc~/src/Makefile msp430-libc/src/Makefile
+--- msp430-libc~/src/Makefile  2010-05-20 21:07:12.000000000 -0600
++++ msp430-libc/src/Makefile   2010-05-20 21:07:59.000000000 -0600
+@@ -13,7 +13,9 @@
+ target = msp430
+ prefix_target = $(PREFIX)/${target}
++ifndef bindir
+ bindir = $(PREFIX)/bin
++endif
+ includedir = ${prefix_target}/include
+ libdir = ${prefix_target}/lib
+@@ -133,7 +135,7 @@
+       ${INSTALL}      
+ #--------------- directories ---------------
+-$(includedir) $(includedir)/sys $(includedir)/msp430:
++$(includedir) $(includedir)/sys $(includedir)/msp430 $(libdir):
+       $(MD)
+ #------------------------------------------------------------------------
+ #------------------------------------------------------------------------