Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into...
[openembedded.git] / packages / elfutils / elfutils-0.127 / warnings.patch
1 Index: elfutils-0.127/configure.ac
2 ===================================================================
3 --- elfutils-0.127.orig/configure.ac    2007-04-19 07:55:07.000000000 +0100
4 +++ elfutils-0.127/configure.ac 2008-03-26 10:45:54.000000000 +0000
5 @@ -55,6 +55,10 @@
6  dnl Add all the languages for which translations are available.
7  ALL_LINGUAS=
8  
9 +if test X"$CFLAGS" = X; then
10 +  CFLAGS="-Wall -Werror -g -O2"
11 +fi
12 +
13  AC_PROG_CC
14  AC_PROG_RANLIB
15  AC_PROG_YACC
16 Index: elfutils-0.127/lib/Makefile.am
17 ===================================================================
18 --- elfutils-0.127.orig/lib/Makefile.am 2006-04-11 21:52:05.000000000 +0100
19 +++ elfutils-0.127/lib/Makefile.am      2008-03-26 10:45:54.000000000 +0000
20 @@ -30,7 +30,7 @@
21  else
22  AM_CFLAGS =
23  endif
24 -AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused -Wextra $($(*F)_CFLAGS)
25 +AM_CFLAGS += -fpic -Wshadow -Wunused $($(*F)_CFLAGS)
26  INCLUDES = -I$(srcdir)/../libelf -I..
27  
28  noinst_LIBRARIES = libeu.a
29 Index: elfutils-0.127/libasm/Makefile.am
30 ===================================================================
31 --- elfutils-0.127.orig/libasm/Makefile.am      2006-08-29 20:31:57.000000000 +0100
32 +++ elfutils-0.127/libasm/Makefile.am   2008-03-26 10:45:54.000000000 +0000
33 @@ -30,7 +30,7 @@
34  else
35  AM_CFLAGS =
36  endif
37 -AM_CFLAGS += -std=gnu99 -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2
38 +AM_CFLAGS += -std=gnu99 -Wshadow -Wunused -Wformat=2
39  INCLUDES = -I. -I$(srcdir) -I.. \
40            -I$(top_srcdir)/libelf -I$(top_srcdir)/libebl -I$(top_srcdir)/libdw\
41            -I$(top_srcdir)/lib
42 Index: elfutils-0.127/libcpu/Makefile.am
43 ===================================================================
44 --- elfutils-0.127.orig/libcpu/Makefile.am      2006-04-11 21:52:05.000000000 +0100
45 +++ elfutils-0.127/libcpu/Makefile.am   2008-03-26 10:45:54.000000000 +0000
46 @@ -25,7 +25,7 @@
47  ## <http://www.openinventionnetwork.com>.
48  ##
49  DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
50 -AM_CFLAGS = -Wall -Wshadow -Werror -Wextra -Wformat=2 -Wunused
51 +AM_CFLAGS = -Wshadow -Wformat=2 -Wunused
52  INCLUDES = -I$(srcdir)
53  
54  noinst_LIBRARIES = libcpu_i386.a
55 Index: elfutils-0.127/libdw/Makefile.am
56 ===================================================================
57 --- elfutils-0.127.orig/libdw/Makefile.am       2007-04-05 11:26:50.000000000 +0100
58 +++ elfutils-0.127/libdw/Makefile.am    2008-03-26 10:45:54.000000000 +0000
59 @@ -33,7 +33,7 @@
60  if BUILD_STATIC
61  AM_CFLAGS += -fpic
62  endif
63 -AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 -Wextra -std=gnu99
64 +AM_CFLAGS += -Wshadow -Wunused -Wformat=2 -std=gnu99
65  INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I.. -I$(srcdir)/../lib
66  VERSION = 1
67  
68 Index: elfutils-0.127/libebl/Makefile.am
69 ===================================================================
70 --- elfutils-0.127.orig/libebl/Makefile.am      2007-04-05 10:12:36.000000000 +0100
71 +++ elfutils-0.127/libebl/Makefile.am   2008-03-26 10:45:54.000000000 +0000
72 @@ -30,7 +30,7 @@
73  else
74  AM_CFLAGS =
75  endif
76 -AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 \
77 +AM_CFLAGS += -fpic -Wshadow -Wunused -Wformat=2 \
78              -std=gnu99
79  
80  INCLUDES = -I$(srcdir) -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw \
81 Index: elfutils-0.127/libelf/Makefile.am
82 ===================================================================
83 --- elfutils-0.127.orig/libelf/Makefile.am      2007-04-05 10:12:36.000000000 +0100
84 +++ elfutils-0.127/libelf/Makefile.am   2008-03-26 10:45:54.000000000 +0000
85 @@ -33,7 +33,7 @@
86  if BUILD_STATIC
87  AM_CFLAGS += -fpic
88  endif
89 -AM_CFLAGS += -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 -std=gnu99 \
90 +AM_CFLAGS += -Wshadow -Wunused -Wformat=2 -std=gnu99 \
91              $($(*F)_CFLAGS)
92  INCLUDES = -I$(srcdir) -I$(top_srcdir)/lib -I..
93  GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
94 Index: elfutils-0.127/tests/Makefile.am
95 ===================================================================
96 --- elfutils-0.127.orig/tests/Makefile.am       2007-04-18 21:44:32.000000000 +0100
97 +++ elfutils-0.127/tests/Makefile.am    2008-03-26 10:45:54.000000000 +0000
98 @@ -26,11 +26,11 @@
99  ##
100  DEFS = -DHAVE_CONFIG_H -D_GNU_SOURCE
101  if MUDFLAP
102 -AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 -fmudflap\
103 +AM_CFLAGS = -std=gnu99 -fmudflap\
104             $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
105  BUILD_RPATH = \$$ORIGIN/../backends
106  else
107 -AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 \
108 +AM_CFLAGS = -std=gnu99 \
109             $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
110  BUILT_RPATH = \$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../backends:\$$ORIGIN/../libelf
111  endif
112 Index: elfutils-0.127/backends/Makefile.am
113 ===================================================================
114 --- elfutils-0.127.orig/backends/Makefile.am    2007-04-05 10:12:36.000000000 +0100
115 +++ elfutils-0.127/backends/Makefile.am 2008-03-26 10:45:54.000000000 +0000
116 @@ -30,7 +30,7 @@
117  else
118  AM_CFLAGS =
119  endif
120 -AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 \
121 +AM_CFLAGS += -fpic -Wshadow -Wunused -Wformat=2 \
122              -std=gnu99
123  INCLUDES = -I$(srcdir) -I$(top_srcdir)/libebl \
124            -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw \
125 Index: elfutils-0.127/libdwfl/Makefile.am
126 ===================================================================
127 --- elfutils-0.127.orig/libdwfl/Makefile.am     2007-04-05 10:12:36.000000000 +0100
128 +++ elfutils-0.127/libdwfl/Makefile.am  2008-03-26 10:45:54.000000000 +0000
129 @@ -32,7 +32,7 @@
130  else
131  AM_CFLAGS =
132  endif
133 -AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 -Wextra -std=gnu99
134 +AM_CFLAGS += -Wunused -Wformat=2 -std=gnu99
135  INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
136            -I$(srcdir)/../libdw -I.. -I$(srcdir)/../lib
137  VERSION = 1
138 Index: elfutils-0.127/src/Makefile.am
139 ===================================================================
140 --- elfutils-0.127.orig/src/Makefile.am 2008-03-26 10:48:00.000000000 +0000
141 +++ elfutils-0.127/src/Makefile.am      2008-03-26 10:48:21.000000000 +0000
142 @@ -32,7 +32,6 @@
143  AM_CFLAGS =
144  endif
145  AM_CFLAGS += -Wall -Wshadow -std=gnu99 $(native_ld_cflags) \
146 -            $(if $($(*F)_no_Werror),,-Werror) \
147              $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
148              $(if $($(*F)_no_Wformat),,-Wformat=2) $(CFLAGS_$(*F))
149