summaryrefslogtreecommitdiff
path: root/dev-lang/eisl/files/eisl-2.85-Makefile.patch
blob: 61cd83f7da777d929ddbc9116da9fc3b94418903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- a/makefile
+++ b/makefile
@@ -38,7 +38,7 @@ else
 		endif
 	endif
 endif
-CFLAGS += $(INCS) -g -Wall -Wextra -D_FORTIFY_SOURCE=2 $(CURSES_CFLAGS) -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -D_XOPEN_SOURCE_EXTENDED -Inana/src
+CFLAGS += $(INCS) -g -Wall -Wextra $(CURSES_CFLAGS) -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -D_XOPEN_SOURCE_EXTENDED -Inana/src
 DFLAGS := --preview=all --de -w --O3 --release --betterC
 SRC_CII := cii/src/except.c cii/src/fmt.c cii/src/str.c cii/src/text.c
 SRC_D := dextension.d disl.d
@@ -68,7 +68,7 @@ ifeq ($(DEBUG),1)
 		LDFLAGS += -fsanitize=undefined
 	endif
 else
-	CFLAGS += -O3 -flto -DNDEBUG=1 -DWITHOUT_NANA=1
+	CFLAGS += -DNDEBUG=1 -DWITHOUT_NANA=1
 	SRC_CII += cii/src/mem.c
 endif
 OBJ_CII := $(SRC_CII:.c=.o)
@@ -86,11 +86,8 @@ ifeq  ($(shell uname -n),raspberrypi)
 	CFLAGS += -D__rpi__
 endif
 ifneq ($(DEBUG),1)
-	LDFLAGS += -flto
 	ifeq  ($(shell uname),Darwin)
 		LDFLAGS += -Wl,-S,-x
-	else
-		LDFLAGS += -s
 	endif
 endif
 PREFIX := /usr/local