software/common.mak: fix LTO refactoring issue.

This commit is contained in:
Florent Kermarrec 2020-03-05 23:42:16 +01:00
parent 8bfb845f9c
commit e124aed9a2
1 changed files with 1 additions and 1 deletions

View File

@ -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