[uml] add a patch to disable compile-time buffer checks enabled by default on Ubuntu...
[openwrt/svn-archive/archive.git] / target / linux / uml / patches / 002-gcc4_unfortify_source.patch
1 --- a/arch/um/Makefile-i386
2 +++ b/arch/um/Makefile-i386
3 @@ -39,4 +39,8 @@ KBUILD_CFLAGS += $(shell if [ $(call cc-
4 echo $(call cc-option,-fno-unit-at-a-time); \
5 else echo $(call cc-option,-funit-at-a-time); fi ;)
6
7 +# disable compile-time buffer checks, enabled by default on Ubuntu 8.10
8 +# and later
9 +KBUILD_CFLAGS += $(call cc-option,-U_FORTIFY_SOURCE)
10 +
11 KBUILD_CFLAGS += $(cflags-y)