forked from pool/dbxtool
- Add dbxtool-FORTIFY_SOURCE.patch: Do not redefine FORTIFY_SOURCE without resetting it first. OBS-URL: https://build.opensuse.org/request/show/982723 OBS-URL: https://build.opensuse.org/package/show/Base:System/dbxtool?expand=0&rev=9
26 lines
908 B
Diff
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
|