software/common.mak: fix LTO refactoring issue.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 5 Mar 2020 22:42:16 +0000 (23:42 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 5 Mar 2020 22:42:36 +0000 (23:42 +0100)
litex/soc/software/common.mak

index 58cf2ad864a2434bb86e4a1b2d5107ca1c309f3d..e55d65f1de1c1d282b88de507468cc1ba8416b0a 100644 (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