summaryrefslogtreecommitdiffstats
path: root/patches/flashbench-20120222
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-12-10 10:00:24 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-12-10 10:00:24 +0100
commitef4fb1aa161a173c8bdc7561e739d66219603daf (patch)
tree5878ca55afb371b91598c549757ef04ef9e46a97 /patches/flashbench-20120222
parent64f39aa2a6fecab61ff87e3ff6fb5a0864acabe8 (diff)
downloadptxdist-ef4fb1aa161a173c8bdc7561e739d66219603daf.tar.gz
ptxdist-ef4fb1aa161a173c8bdc7561e739d66219603daf.tar.xz
flashbench: fix building with newer toolchains
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches/flashbench-20120222')
-rw-r--r--patches/flashbench-20120222/0002-Add-lrt-to-LDLIBS-instead-of-LDFLAGS.patch21
-rw-r--r--patches/flashbench-20120222/series3
2 files changed, 23 insertions, 1 deletions
diff --git a/patches/flashbench-20120222/0002-Add-lrt-to-LDLIBS-instead-of-LDFLAGS.patch b/patches/flashbench-20120222/0002-Add-lrt-to-LDLIBS-instead-of-LDFLAGS.patch
new file mode 100644
index 000000000..426b62a33
--- /dev/null
+++ b/patches/flashbench-20120222/0002-Add-lrt-to-LDLIBS-instead-of-LDFLAGS.patch
@@ -0,0 +1,21 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Sat, 8 Dec 2012 13:36:56 +0100
+Subject: [PATCH] Add '-lrt' to LDLIBS instead of LDFLAGS
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 01771b0..90fbd51 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,6 +1,6 @@
+ CC := gcc
+ CFLAGS := -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -g2 $(EXTRA_CFLAGS)
+-LDFLAGS := -lrt
++LDLIBS := -lrt
+
+ all: flashbench erase
+
diff --git a/patches/flashbench-20120222/series b/patches/flashbench-20120222/series
index 8ac1f1984..b63b21f3b 100644
--- a/patches/flashbench-20120222/series
+++ b/patches/flashbench-20120222/series
@@ -1,4 +1,5 @@
# generated by git-ptx-patches
#tag:base --start-number 1
0001-Allow-to-specify-MAX_BUFSIZE-during-compile-time.patch
-# 2284485069f201f5dd31c217b70f51e0 - git-ptx-patches magic
+0002-Add-lrt-to-LDLIBS-instead-of-LDFLAGS.patch
+# fa6c1da743f5dd6808f0f1b887b31657 - git-ptx-patches magic