From: Florent Kermarrec Date: Mon, 9 Mar 2020 18:08:27 +0000 (+0100) Subject: software/common: fix LTO checks. X-Git-Tag: 24jan2021_ls180~582 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4656b1b2ad630198ffa6930149dd4e8563f718ae;p=litex.git software/common: fix LTO checks. --- 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