aboutsummaryrefslogtreecommitdiff
path: root/Arduino.mk
diff options
context:
space:
mode:
authorSimon John <git@the-jedi.co.uk>2016-10-11 15:35:35 +0100
committerGitHub <noreply@github.com>2016-10-11 15:35:35 +0100
commit299c1831cc38f1ee027fb5d9f84d7a8d3f7288f3 (patch)
tree14d01343ecb51210cd942dcd9863b286dbdda83d /Arduino.mk
parentf3f7684463a4b0de85adbeff11c90ecfbfb13edd (diff)
parentfe020380b604ea514594360eb77baaccd6533f68 (diff)
Merge pull request #464 from sej7278/master
Changed LTO support check to avr-gcc > 4.9.0
Diffstat (limited to 'Arduino.mk')
-rw-r--r--Arduino.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/Arduino.mk b/Arduino.mk
index 15e242d..133a9a2 100644
--- a/Arduino.mk
+++ b/Arduino.mk
@@ -1032,7 +1032,7 @@ CC_VERNUM = $(shell $(CC) -dumpversion | sed 's/\.//g')
# moved from above so we can find version-dependant ar
ifndef AR_NAME
- ifeq ($(shell expr $(CC_VERNUM) '>' 480), 1)
+ ifeq ($(shell expr $(CC_VERNUM) '>' 490), 1)
AR_NAME = avr-gcc-ar
else
AR_NAME = avr-ar
@@ -1040,7 +1040,7 @@ ifndef AR_NAME
endif
ifndef CFLAGS_STD
- ifeq ($(shell expr $(CC_VERNUM) '>' 480), 1)
+ ifeq ($(shell expr $(CC_VERNUM) '>' 490), 1)
CFLAGS_STD = -std=gnu11 -flto -fno-fat-lto-objects
else
CFLAGS_STD =
@@ -1051,7 +1051,7 @@ else
endif
ifndef CXXFLAGS_STD
- ifeq ($(shell expr $(CC_VERNUM) '>' 480), 1)
+ ifeq ($(shell expr $(CC_VERNUM) '>' 490), 1)
CXXFLAGS_STD = -std=gnu++11 -fno-threadsafe-statics -flto
else
CXXFLAGS_STD =
@@ -1064,11 +1064,11 @@ endif
CFLAGS += $(CFLAGS_STD)
CXXFLAGS += -fpermissive -fno-exceptions $(CXXFLAGS_STD)
ASFLAGS += -x assembler-with-cpp
-ifeq ($(shell expr $(CC_VERNUM) '>' 480), 1)
+ifeq ($(shell expr $(CC_VERNUM) '>' 490), 1)
ASFLAGS += -flto
endif
LDFLAGS += -$(MCU_FLAG_NAME)=$(MCU) -Wl,--gc-sections -O$(OPTIMIZATION_LEVEL)
-ifeq ($(shell expr $(CC_VERNUM) '>' 480), 1)
+ifeq ($(shell expr $(CC_VERNUM) '>' 490), 1)
LDFLAGS += -flto -fuse-linker-plugin
endif
SIZEFLAGS ?= --mcu=$(MCU) -C