SHA256
1
0
forked from pool/dbxtool
Files
dbxtool/dbxtool-FORTIFY_SOURCE.patch
2022-06-23 09:21:50 +00:00

26 lines
908 B
Diff

Index: dbxtool-8/.syntastic_c_config
===================================================================
--- dbxtool-8.orig/.syntastic_c_config
+++ dbxtool-8/.syntastic_c_config
@@ -11,6 +11,7 @@
-Werror
-Wextra
-Werror=format-security
+-Wp,-U_FORTIFY_SOURCE
-Wp,-D_FORTIFY_SOURCE=2
-fexceptions
-fstack-protector-strong
Index: dbxtool-8/Make.defaults
===================================================================
--- dbxtool-8.orig/Make.defaults
+++ dbxtool-8/Make.defaults
@@ -10,7 +10,7 @@ BUILDFLAGS = $(CFLAGS) -fPIC -fshort-wch
-Wall -Wextra -Werror -Werror=format-security \
-Wsign-compare -Werror=sign-compare \
-Wno-unused-result -Wno-unused-function -Wno-error=cpp \
- -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong \
+ -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong \
--param=ssp-buffer-size=4 -fexceptions
ASFLAGS =
LDFLAGS = -nostdlib