You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.1 KiB

  1. From 937b2e633754c1234cc0037e47c77f7735704a12 Mon Sep 17 00:00:00 2001
  2. From: Josef Schlehofer <pepe.schlehofer@gmail.com>
  3. Date: Tue, 7 Jun 2022 17:55:59 +0200
  4. Subject: [PATCH] GNUmakefile: comment out D_FORTIFY_SOURCE
  5. Fixes:
  6. <command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
  7. <command-line>: note: this is the location of the previous definition
  8. cc1: all warnings being treated as errors
  9. ---
  10. GNUmakefile | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. --- a/GNUmakefile
  13. +++ b/GNUmakefile
  14. @@ -160,7 +160,7 @@ $(eval $(call CHECK_CFLAGS,common_CFLAGS
  15. $(eval $(call CHECK_CFLAGS,common_CFLAGS,-Werror=format-security))
  16. $(eval $(call CHECK_CFLAGS,common_CFLAGS,-Wno-disabled-macro-expansion))
  17. $(eval $(call CHECK_CFLAGS,common_CFLAGS,-Wno-format-nonliteral))
  18. -$(eval $(call CHECK_CFLAGS,CPPFLAGS,-D_FORTIFY_SOURCE=2))
  19. +# $(eval $(call CHECK_CFLAGS,CPPFLAGS,-D_FORTIFY_SOURCE=2))
  20. $(eval $(call CHECK_CFLAGS,CPPFLAGS,-D_GLIBCXX_ASSERTIONS))
  21. # $(eval $(call CHECK_CFLAGS,CFLAGS,-Wp$$(comma)-D_FORTIFY_SOURCE=2))
  22. # $(eval $(call CHECK_CFLAGS,CFLAGS,-Wp$$(comma)-D_GLIBCXX_ASSERTIONS))