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.

34 lines
923 B

--- a/makefile
+++ b/makefile
@@ -29,7 +29,7 @@ else
CURSES_LIBS := $(shell ncurses6-config --libs)
endif
endif
-CFLAGS := $(INCS) -Wall -Wextra -D_FORTIFY_SOURCE=2 $(CURSES_CFLAGS) -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -Inana/src
+CFLAGS += $(INCS) -Wall -Wextra $(CURSES_CFLAGS) -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -Inana/src
DFLAGS := --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
@@ -42,7 +42,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)
@@ -56,11 +56,10 @@ else
CFLAGS += -std=c17
endif
ifneq ($(DEBUG),1)
- LDFLAGS += -flto
ifeq ($(OPSYS),macos)
LDFLAGS += -Wl,-S,-x
else
- LDFLAGS += -s
+ LDFLAGS +=
endif
endif
PREFIX := /usr/local