0002-Enforce-compilation-without-system-headers.patch 1.0 KB

12345678910111213141516171819202122232425262728
  1. From fd77232c8e9789f5556fc6cc3c694924c1546a41 Mon Sep 17 00:00:00 2001
  2. From: Paul Kocialkowski <contact@paulk.fr>
  3. Date: Wed, 20 Jul 2016 16:26:32 +0200
  4. Subject: [PATCH 2/4] Enforce compilation without system headers
  5. This is based on commit bc404c94b4ab1e6a62e607fd7ef034aa31d6388e
  6. (Enforce compilation without system headers)
  7. ---
  8. Makefile.toolchain | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. diff --git a/Makefile.toolchain b/Makefile.toolchain
  11. index dd0ebb2..47991e1 100644
  12. --- a/Makefile.toolchain
  13. +++ b/Makefile.toolchain
  14. @@ -19,7 +19,7 @@ BUILDCC?=gcc
  15. HOSTCC?=$(HOST_CROSS_COMPILE)gcc
  16. CFLAGS_WARN=-Wall -Werror -Wundef -Wstrict-prototypes -Wno-trigraphs \
  17. - -fno-strict-aliasing -fno-common \
  18. + -fno-strict-aliasing -fno-common -ffreestanding -fno-builtin \
  19. -Werror-implicit-function-declaration -Wno-format-security \
  20. -fno-delete-null-pointer-checks -Wdeclaration-after-statement \
  21. -Wno-pointer-sign -fno-strict-overflow -fconserve-stack
  22. --
  23. 2.9.0