mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-20 10:21:19 +00:00
Remove CFLAGS from FLAGS, CFLAGS already picked, no need to repeat it twice in compiler invocations Closes: https://bugs.gentoo.org/967217 Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com> Part-of: https://github.com/gentoo/gentoo/pull/44954 Closes: https://github.com/gentoo/gentoo/pull/44954 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
37 lines
738 B
Diff
37 lines
738 B
Diff
Remove hardcoded optimization level
|
|
|
|
--- a/makefile
|
|
+++ b/makefile
|
|
@@ -12,8 +12,9 @@
|
|
CURSES_CFLAGS := $(shell ncursesw6-config --cflags)
|
|
CURSES_LIBS := $(shell ncursesw6-config --libs)
|
|
|
|
-
|
|
-CFLAGS += $(INCS) -Wall $(CURSES_CFLAGS)
|
|
+LIBS += $(CURSES_LIBS)
|
|
+FLAGS :=
|
|
+CFLAGS += $(FLAGS) $(INCS) -Wall $(CURSES_CFLAGS)
|
|
|
|
# Files in library/ that need to be compiled
|
|
SRC_LISP := library/bit.lsp \
|
|
@@ -29,19 +30,13 @@
|
|
library/plot.lsp \
|
|
library/unistd.lsp
|
|
|
|
-CFLAGS += -O3
|
|
-
|
|
ifeq ($(USE_FLTO),1)
|
|
-CFLAGS += -O3 -flto
|
|
+CFLAGS += -flto
|
|
endif
|
|
ifeq ($(USE_GDB),1)
|
|
CFLAGS += -O0 -g
|
|
endif
|
|
|
|
-ifeq ($(shell uname -n),raspberrypi)
|
|
-CFLAGS += -O3
|
|
-endif
|
|
-
|
|
OBJ_LISP := $(SRC_LISP:.lsp=.o)
|
|
|
|
ifeq ($(shell uname -n),raspberrypi)
|