Arduino.mk: on Fedora, disable LTO by default
This commit is contained in:
parent
359159d6a6
commit
a5dd307727
1 changed files with 6 additions and 1 deletions
|
@ -1046,8 +1046,13 @@ ifndef AR_NAME
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(shell expr $(CC_VERNUM) '>' 490), 1)
|
ifeq ($(shell expr $(CC_VERNUM) '>' 490), 1)
|
||||||
|
DISTRO=$(if $(wildcard /etc/os-release),$(shell sed -n "/^ID=/ s/ID=//p" /etc/os-release),unknown)
|
||||||
|
ifeq ($(DISTRO),fedora)
|
||||||
|
USE_LTO ?= 0
|
||||||
|
else
|
||||||
USE_LTO ?= 1
|
USE_LTO ?= 1
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
ifndef CFLAGS_STD
|
ifndef CFLAGS_STD
|
||||||
|
|
Loading…
Reference in a new issue