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)