Created
August 15, 2014 18:04
-
-
Save vitiral/66c1c42cf522ef657c75 to your computer and use it in GitHub Desktop.
patch for Arduino-Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From b5b44812c8928de1e7d1e3e2e1a31239b26f49b3 Mon Sep 17 00:00:00 2001 | |
From: Garrett Berg <gberg@neutral.io> | |
Date: Fri, 15 Aug 2014 11:55:20 -0600 | |
Subject: [PATCH] Arduino.mk | |
--- | |
Arduino.mk | 5 +++++ | |
1 file changed, 5 insertions(+) | |
diff --git a/Arduino.mk b/Arduino.mk | |
index 9e29e37..aa2b299 100644 | |
--- a/Arduino.mk | |
+++ b/Arduino.mk | |
@@ -782,6 +782,9 @@ endif | |
# Quite how to construct the monitor command seems intimately tied | |
# to the command we're using (here screen). So, read the screen docs | |
# for more information (search for 'character special device'). | |
+ifdef EXTRA_ARDUINO_LIBS | |
+ ARDUINO_LIBS += ${EXTRA_ARDUINO_LIBS} | |
+endif | |
ifeq ($(strip $(NO_CORE)),) | |
ifndef MONITOR_BAUDRATE | |
@@ -1258,6 +1261,8 @@ $(OBJDIR): pre-build | |
pre-build: | |
$(call runscript_if_exists,$(PRE_BUILD_HOOK)) | |
+ @$(ECHO) "Arduino Libraries:" | |
+ @$(ECHO) "${ARDUINO_LIBS}\n\n\n" | |
$(TARGET_ELF): $(LOCAL_OBJS) $(CORE_LIB) $(OTHER_OBJS) | |
$(CC) $(LDFLAGS) -o $@ $(LOCAL_OBJS) $(CORE_LIB) $(OTHER_OBJS) -lc -lm | |
-- | |
1.8.5.2 (Apple Git-48) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment