diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.5.0/gcc-poison-system-directories.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.5.0/gcc-poison-system-directories.patch | 54 |
1 files changed, 53 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.5.0/gcc-poison-system-directories.patch b/meta/recipes-devtools/gcc/gcc-4.5.0/gcc-poison-system-directories.patch index e68a2de2a2..04043ff0b7 100644 --- a/meta/recipes-devtools/gcc/gcc-4.5.0/gcc-poison-system-directories.patch +++ b/meta/recipes-devtools/gcc/gcc-4.5.0/gcc-poison-system-directories.patch | |||
@@ -34,7 +34,7 @@ Index: gcc-4.5.0/gcc/common.opt | |||
34 | Warn when padding is required to align structure members | 34 | Warn when padding is required to align structure members |
35 | 35 | ||
36 | +Wpoison-system-directories | 36 | +Wpoison-system-directories |
37 | +Common Var(flag_poison_system_directories) Init(1) | 37 | +Common Var(flag_poison_system_directories) Init(1) Warning |
38 | +Warn for -I and -L options using system directories if cross compiling | 38 | +Warn for -I and -L options using system directories if cross compiling |
39 | + | 39 | + |
40 | Wshadow | 40 | Wshadow |
@@ -147,3 +147,55 @@ Index: gcc-4.5.0/gcc/incpath.c | |||
147 | } | 147 | } |
148 | 148 | ||
149 | /* Use given -I paths for #include "..." but not #include <...>, and | 149 | /* Use given -I paths for #include "..." but not #include <...>, and |
150 | diff -ur gcc-4.5.0.orig/gcc/Makefile.in gcc-4.5.0/gcc/Makefile.in | ||
151 | --- gcc-4.5.0.orig/gcc/Makefile.in 2010-09-29 17:13:49.164088845 -0500 | ||
152 | +++ gcc-4.5.0/gcc/Makefile.in 2010-09-29 18:48:19.300178501 -0500 | ||
153 | @@ -1965,7 +1965,7 @@ | ||
154 | |||
155 | incpath.o: incpath.c incpath.h $(CONFIG_H) $(SYSTEM_H) $(CPPLIB_H) \ | ||
156 | intl.h prefix.h coretypes.h $(TM_H) cppdefault.h $(TARGET_H) \ | ||
157 | - $(MACHMODE_H) | ||
158 | + $(MACHMODE_H) $(FLAGS_H) toplev.h | ||
159 | |||
160 | c-decl.o : c-decl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \ | ||
161 | $(RTL_H) $(C_TREE_H) $(GGC_H) $(TARGET_H) $(FLAGS_H) $(FUNCTION_H) output.h \ | ||
162 | diff -ur gcc-4.5.0.orig/gcc/configure gcc-4.5.0/gcc/configure | ||
163 | --- gcc-4.5.0.orig/gcc/configure 2010-09-29 14:58:31.702054881 -0500 | ||
164 | +++ gcc-4.5.0/gcc/configure 2010-09-29 18:46:31.486068500 -0500 | ||
165 | @@ -913,6 +913,7 @@ | ||
166 | enable_maintainer_mode | ||
167 | enable_version_specific_runtime_libs | ||
168 | with_slibdir | ||
169 | +enable_poison_system_directories | ||
170 | enable_plugin | ||
171 | enable_target_optspace | ||
172 | ' | ||
173 | @@ -1621,6 +1622,8 @@ | ||
174 | --enable-version-specific-runtime-libs | ||
175 | specify that runtime libraries should be | ||
176 | installed in a compiler-specific directory | ||
177 | + --enable-poison-system-directories | ||
178 | + warn for use of native system header directories | ||
179 | --enable-plugin enable plugin support | ||
180 | |||
181 | Optional Packages: | ||
182 | @@ -25339,6 +25377,19 @@ | ||
183 | |||
184 | |||
185 | |||
186 | +# Check whether --enable-poison-system-directories was given. | ||
187 | +if test "${enable_poison_system_directories+set}" = set; then : | ||
188 | + enableval=$enable_poison_system_directories; | ||
189 | +else | ||
190 | + enable_poison_system_directories=no | ||
191 | +fi | ||
192 | + | ||
193 | +if test "x${enable_poison_system_directories}" = "xyes"; then | ||
194 | + | ||
195 | +$as_echo "#define ENABLE_POISON_SYSTEM_DIRECTORIES 1" >>confdefs.h | ||
196 | + | ||
197 | +fi | ||
198 | + | ||
199 | # Substitute configuration variables | ||
200 | |||
201 | |||