software/common.mak: fix LTO refactoring issue.
This commit is contained in:
parent
8bfb845f9c
commit
e124aed9a2
|
@ -58,7 +58,7 @@ DEPFLAGS += -MD -MP
|
|||
INCLUDES = -I$(SOC_DIRECTORY)/software/include/base -I$(SOC_DIRECTORY)/software/include -I$(SOC_DIRECTORY)/common -I$(BUILDINC_DIRECTORY)
|
||||
COMMONFLAGS = $(DEPFLAGS) -Os $(CPUFLAGS) -g3 -fomit-frame-pointer -Wall -fno-builtin -nostdinc $(INCLUDES)
|
||||
COMMONFLAGS += -ffunction-sections -fdata-sections -nostartfiles -nostdlib -nodefaultlibs
|
||||
ifneq ($(LTO), 1)
|
||||
ifeq ($(LTO), 1)
|
||||
COMMONFLAGS += -flto -fuse-linker-plugin
|
||||
endif
|
||||
CFLAGS = $(COMMONFLAGS) -fexceptions -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
|
||||
|
|
Loading…
Reference in New Issue