When globally enabling -Wcast-align, which is useful on older arm
targets, libelf compile fails due to -Werror set.

Signed-off-by: Alexander Dahl <a...@thorsis.com>
---
 patches/elfutils-0.170/0001-Remove-Werror.patch | 23 +++++++++++++++++++++++
 patches/elfutils-0.170/autogen.sh               |  1 +
 patches/elfutils-0.170/series                   |  4 ++++
 3 files changed, 28 insertions(+)
 create mode 100644 patches/elfutils-0.170/0001-Remove-Werror.patch
 create mode 120000 patches/elfutils-0.170/autogen.sh
 create mode 100644 patches/elfutils-0.170/series

diff --git a/patches/elfutils-0.170/0001-Remove-Werror.patch 
b/patches/elfutils-0.170/0001-Remove-Werror.patch
new file mode 100644
index 0000000000..10a42b3cb8
--- /dev/null
+++ b/patches/elfutils-0.170/0001-Remove-Werror.patch
@@ -0,0 +1,23 @@
+From: Alexander Dahl <a...@thorsis.com>
+Date: Fri, 23 Feb 2018 08:50:04 +0100
+Subject: [PATCH] Remove -Werror
+
+Otherwise build fails on arm-v5te if global -Wcast-align is set.
+
+Signed-off-by: Alexander Dahl <a...@thorsis.com>
+---
+ config/eu.am | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/config/eu.am b/config/eu.am
+index 8fe1e259f9e2..c5a6209a4e04 100644
+--- a/config/eu.am
++++ b/config/eu.am
+@@ -71,7 +71,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
+           -Wold-style-definition -Wstrict-prototypes \
+           $(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \
+           $(NULL_DEREFERENCE_WARNING) $(IMPLICIT_FALLTHROUGH_WARNING) \
+-          $(if $($(*F)_no_Werror),,-Werror) \
+           $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
+           $(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \
+           $($(*F)_CFLAGS)
diff --git a/patches/elfutils-0.170/autogen.sh 
b/patches/elfutils-0.170/autogen.sh
new file mode 120000
index 0000000000..9f8a4cb7dd
--- /dev/null
+++ b/patches/elfutils-0.170/autogen.sh
@@ -0,0 +1 @@
+../autogen.sh
\ No newline at end of file
diff --git a/patches/elfutils-0.170/series b/patches/elfutils-0.170/series
new file mode 100644
index 0000000000..980b105128
--- /dev/null
+++ b/patches/elfutils-0.170/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-Remove-Werror.patch
+# 2663f0f9573dba0dfadde4c336a4c88c  - git-ptx-patches magic
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to