From e124aed9a2ac20f1f649ba67a5087eea73751e9f Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 5 Mar 2020 23:42:16 +0100 Subject: [PATCH] software/common.mak: fix LTO refactoring issue. --- litex/soc/software/common.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/software/common.mak b/litex/soc/software/common.mak index 58cf2ad86..e55d65f1d 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