002-gcc4_unfortify_source.patch 754 B

123456789101112131415161718192021
  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. +# disable compile-time buffer checks, enabled by default on Ubuntu 8.10
  7. +# and later
  8. +KBUILD_CFLAGS += $(call cc-option,-U_FORTIFY_SOURCE)
  9. +
  10. KBUILD_CFLAGS += $(cflags-y)
  11. --- a/arch/um/Makefile-x86_64
  12. +++ b/arch/um/Makefile-x86_64
  13. @@ -24,3 +24,7 @@ LINK-y += -m64
  14. # Do unit-at-a-time unconditionally on x86_64, following the host
  15. KBUILD_CFLAGS += $(call cc-option,-funit-at-a-time)
  16. +
  17. +# disable compile-time buffer checks, enabled by default on Ubuntu 8.10
  18. +# and later
  19. +KBUILD_CFLAGS += $(call cc-option,-U_FORTIFY_SOURCE)