From 4656b1b2ad630198ffa6930149dd4e8563f718ae Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 9 Mar 2020 19:08:27 +0100 Subject: [PATCH] software/common: fix LTO checks. --- litex/soc/software/common.mak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/soc/software/common.mak b/litex/soc/software/common.mak index e55d65f1..9fd0e307 100644 --- a/litex/soc/software/common.mak +++ b/litex/soc/software/common.mak @@ -7,7 +7,7 @@ endif RM ?= rm -f PYTHON ?= python3 -ifneq ($(CPU), lm32) +ifeq ($(CPU), lm32) LTO = 0 else LTO = 1 @@ -20,7 +20,7 @@ else CC_normal := $(TARGET_PREFIX)gcc -std=gnu99 CX_normal := $(TARGET_PREFIX)g++ endif -ifneq ($(LTO), 1) +ifeq ($(LTO), 1) AR_normal := $(TARGET_PREFIX)gcc-ar else AR_normal := $(TARGET_PREFIX)ar -- 2.30.2