summaryrefslogtreecommitdiffstats
path: root/package/elfutils/0005-really-make-werror-conditional-to-build-werror.patch
diff options
context:
space:
mode:
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>2015-01-06 12:02:06 +0000
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-01-06 22:01:46 +0100
commit4038cbf2279ce0f04125fc1a2266f84ea8090070 (patch)
tree7a502557f853b1428c4574956d76b66da0f95189 /package/elfutils/0005-really-make-werror-conditional-to-build-werror.patch
parentd434fcbeabd9abb9b0d94ee05d6c03cba251c69c (diff)
downloadbuildroot-4038cbf2279ce0f04125fc1a2266f84ea8090070.tar.gz
buildroot-4038cbf2279ce0f04125fc1a2266f84ea8090070.zip
elfutils: bump version to 0.161
- Bump version to 0.161 - Remove the portability patch. We don't need to have it in Buildroot since it includes the version number so we can download it safely without having collisions between versions. - Adapt the patches that need to be adapted. - Rename patches to start from 0001. - Update the hash value and add a new value for the portability patch. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/elfutils/0005-really-make-werror-conditional-to-build-werror.patch')
-rw-r--r--package/elfutils/0005-really-make-werror-conditional-to-build-werror.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/elfutils/0005-really-make-werror-conditional-to-build-werror.patch b/package/elfutils/0005-really-make-werror-conditional-to-build-werror.patch
new file mode 100644
index 0000000000..59aae5e8b6
--- /dev/null
+++ b/package/elfutils/0005-really-make-werror-conditional-to-build-werror.patch
@@ -0,0 +1,24 @@
+Really make -Werror conditional to BUILD_WERROR
+
+Otherwise it will fail with an error message like this one:
+
+elf_getarsym.c:290:9: error: 'n' may be used uninitialized in this
+function [-Werror=maybe-uninitialized]
+ arsym[n].as_name = NULL;
+ ^
+cc1: all warnings being treated as errors
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
+
+diff -rup a/config/eu.am b/config/eu.am
+--- a/config/eu.am 2014-11-10 16:19:14.356031479 +0000
++++ b/config/eu.am 2014-11-10 16:21:11.702072011 +0000
+@@ -35,7 +35,6 @@ LD_AS_NEEDED = @LD_AS_NEEDED@
+ DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
+ AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I..
+ AM_CFLAGS = -std=gnu99 -Wall -Wshadow \
+- $(if $($(*F)_no_Werror),,-Werror) \
+ $(if $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) \
+ $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2) \
+ $($(*F)_CFLAGS)
OpenPOWER on IntegriCloud