summaryrefslogtreecommitdiff
path: root/dev-python/leechcorepyc/files/leechcorepyc-2.14.0-cflags.patch
blob: 945f4e41e1c1ad92abf1f38b8d07813074d5b5f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Bug: https://bugs.gentoo.org/893824
--- a/leechcore/Makefile
+++ b/leechcore/Makefile
@@ -6,7 +6,8 @@
 # CFLAGS  += -fsanitize=address -fsanitize=leak -fno-omit-frame-pointer -fsanitize=undefined -fsanitize=bounds-strict -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow
 # CFLAGS  += -fsanitize=pointer-compare -fsanitize=pointer-subtract -fanalyzer
 # DEBUG FLAGS ABOVE
-CFLAGS  += -fPIE -fPIC -pie -fstack-protector -D_FORTIFY_SOURCE=2 -O1 -Wl,-z,noexecstack
+CFLAGS  := -D_FORTIFY_SOURCE=2 ${CFLAGS}
+CFLAGS  += -fPIE -fPIC -pie -Wl,-z,noexecstack
 CFLAGS  += -Wall -Wno-unused-result -Wno-unused-variable -Wno-unused-value -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast
 LDFLAGS += -g -ldl -shared
 DEPS = leechcore.h