Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,12 @@ XSRCS-y += src/memory/store_queue_wrapper.cpp

XSRCS = $(XSRCS-y)

ifdef CONFIG_CC
CC = $(call remove_quote,$(CONFIG_CC))
endif
ifdef CONFIG_CXX
CXX = $(call remove_quote,$(CONFIG_CXX))
endif
CFLAGS_BUILD += $(call remove_quote,$(CONFIG_CC_OPT))
CFLAGS_BUILD += $(if $(CONFIG_CC_LTO),-flto=auto,)
CFLAGS_BUILD += $(if $(CONFIG_CC_DEBUG),-ggdb3,)
Expand Down
2 changes: 1 addition & 1 deletion tools/kconfig/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ifeq ($(NAME),conf)
SRCS += conf.c
else ifeq ($(NAME),mconf)
SRCS += mconf.c $(shell find lxdialog/ -name "*.c")
LIBS += -lncurses -ltinfo
LDFLAGS += -lncurses -ltinfo
else
$(error bad target=$(NAME))
endif
Expand Down