Arduino.mk: on Fedora, disable LTO by default

This commit is contained in:
Tim Niemueller 2017-03-06 17:52:12 +01:00
parent 359159d6a6
commit a5dd307727

View file

@ -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