0003-Makefile-fix-stack-protector-tests.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 9bf9155804652c0b3a94af9723c79b6de430187b Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Mon, 24 Feb 2020 00:04:06 +0100
  4. Subject: [PATCH] Makefile: fix stack-protector tests
  5. Rename fnostack_protector into fno_stack_protector and
  6. fnostack_protector_all into fnostack_protector_all otherwise build will
  7. fail if -fstack-protector is passed by the toolchain
  8. Fixes:
  9. - http://autobuild.buildroot.org/results/ad689b08173548af21dd1fb0e827fd561de6dfef
  10. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  11. [Upstream status: sent to kvm@vger.kernel.org]
  12. ---
  13. Makefile | 4 ++--
  14. 1 file changed, 2 insertions(+), 2 deletions(-)
  15. diff --git a/Makefile b/Makefile
  16. index 767b6c6..754ed65 100644
  17. --- a/Makefile
  18. +++ b/Makefile
  19. @@ -55,8 +55,8 @@ COMMON_CFLAGS += -Wignored-qualifiers -Werror
  20. frame-pointer-flag=-f$(if $(KEEP_FRAME_POINTER),no-,)omit-frame-pointer
  21. fomit_frame_pointer := $(call cc-option, $(frame-pointer-flag), "")
  22. -fnostack_protector := $(call cc-option, -fno-stack-protector, "")
  23. -fnostack_protector_all := $(call cc-option, -fno-stack-protector-all, "")
  24. +fno_stack_protector := $(call cc-option, -fno-stack-protector, "")
  25. +fno_stack_protector_all := $(call cc-option, -fno-stack-protector-all, "")
  26. wno_frame_address := $(call cc-option, -Wno-frame-address, "")
  27. fno_pic := $(call cc-option, -fno-pic, "")
  28. no_pie := $(call cc-option, -no-pie, "")
  29. --
  30. 2.25.0