software/common: fix LTO checks.

This commit is contained in:
Florent Kermarrec 2020-03-09 19:08:27 +01:00
parent 2a91deadcb
commit 4656b1b2ad
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ endif
RM ?= rm -f RM ?= rm -f
PYTHON ?= python3 PYTHON ?= python3
ifneq ($(CPU), lm32) ifeq ($(CPU), lm32)
LTO = 0 LTO = 0
else else
LTO = 1 LTO = 1
@ -20,7 +20,7 @@ else
CC_normal := $(TARGET_PREFIX)gcc -std=gnu99 CC_normal := $(TARGET_PREFIX)gcc -std=gnu99
CX_normal := $(TARGET_PREFIX)g++ CX_normal := $(TARGET_PREFIX)g++
endif endif
ifneq ($(LTO), 1) ifeq ($(LTO), 1)
AR_normal := $(TARGET_PREFIX)gcc-ar AR_normal := $(TARGET_PREFIX)gcc-ar
else else
AR_normal := $(TARGET_PREFIX)ar AR_normal := $(TARGET_PREFIX)ar