From: Florent Kermarrec Date: Thu, 5 Mar 2020 22:42:16 +0000 (+0100) Subject: software/common.mak: fix LTO refactoring issue. X-Git-Tag: 24jan2021_ls180~593 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e124aed9a2ac20f1f649ba67a5087eea73751e9f;p=litex.git software/common.mak: fix LTO refactoring issue. --- diff --git a/litex/soc/software/common.mak b/litex/soc/software/common.mak index 58cf2ad8..e55d65f1 100644 --- a/litex/soc/software/common.mak +++ b/litex/soc/software/common.mak @@ -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