59aae5e8b67a1f5ed1f08bf26900728e241982a4
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / elfutils / 0005-really-make-werror-conditional-to-build-werror.patch
1 Really make -Werror conditional to BUILD_WERROR
2
3 Otherwise it will fail with an error message like this one:
4
5 elf_getarsym.c:290:9: error: 'n' may be used uninitialized in this
6 function [-Werror=maybe-uninitialized]
7     arsym[n].as_name = NULL;
8          ^
9 cc1: all warnings being treated as errors
10
11 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
12 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
13
14 diff -rup a/config/eu.am b/config/eu.am
15 --- a/config/eu.am      2014-11-10 16:19:14.356031479 +0000
16 +++ b/config/eu.am      2014-11-10 16:21:11.702072011 +0000
17 @@ -35,7 +35,6 @@ LD_AS_NEEDED = @LD_AS_NEEDED@
18  DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
19  AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I..
20  AM_CFLAGS = -std=gnu99 -Wall -Wshadow \
21 -           $(if $($(*F)_no_Werror),,-Werror) \
22             $(if $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) \
23             $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2) \
24             $($(*F)_CFLAGS)