From 2f4d6c11f05d6c544c5d4f46aff283e211605710 Mon Sep 17 00:00:00 2001 From: Simon John Date: Fri, 1 Aug 2014 12:17:06 +0200 Subject: [PATCH] Fix CFLAGS vs CXXFLAGS typo --- Arduino.mk | 2 +- HISTORY.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Arduino.mk b/Arduino.mk index 1fa80ff..d226e6e 100644 --- a/Arduino.mk +++ b/Arduino.mk @@ -1029,7 +1029,7 @@ $(OBJDIR)/libs/%.o: $(ARDUINO_LIB_PATH)/%.S $(OBJDIR)/libs/%.o: $(USER_LIB_PATH)/%.cpp @$(MKDIR) $(dir $@) - $(CC) -MMD -c $(CPPFLAGS) $(CFLAGS) $< -o $@ + $(CC) -MMD -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@ $(OBJDIR)/libs/%.o: $(USER_LIB_PATH)/%.c @$(MKDIR) $(dir $@) diff --git a/HISTORY.md b/HISTORY.md index aa0fdda..c59684f 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -8,6 +8,7 @@ I tried to give credit whenever possible. If I have missed anyone, kindly add it - Tweak: Allow remove of any OBJDIR with `$(REMOVE) $(OBJDIR)`. (https://github.com/ladislas) - Fix: Change "tinyladi" username to "ladislas" in HISTORY.md. (https://github.com/ladislas) - Add: Add information about `Bare-Arduino–Project` in README. (https://github.com/ladislas) +- Fix: Make avr-g++ use CXXFLAGS instead of CFLAGS. (https://github.com/sej7278) ### 1.3.4 (2014-07-12) - Tweak: Allow spaces in "Serial.begin (....)". (Issue #190) (https://github.com/pdav)