From 71d0b294c5f034859cb884c597b502ad8643f611 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 28 Sep 2013 14:59:40 +1000 Subject: [PATCH] build: added -lpthread and SKETCHNAME in build --- mk/board_avr_sitl.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mk/board_avr_sitl.mk b/mk/board_avr_sitl.mk index fc1094d1e3..ca26039036 100644 --- a/mk/board_avr_sitl.mk +++ b/mk/board_avr_sitl.mk @@ -6,7 +6,7 @@ include $(MK_DIR)/find_tools.mk # Tool options # DEFINES = -DF_CPU=$(F_CPU) -DEFINES += -DSKETCH=\"$(SKETCH)\" +DEFINES += -DSKETCH=\"$(SKETCH)\" -DSKETCHNAME="\"$(SKETCH)\"" DEFINES += $(EXTRAFLAGS) # from user config.mk DEFINES += -DCONFIG_HAL_BOARD=$(HAL_BOARD) WARNFLAGS = -Wformat -Wall -Wshadow -Wpointer-arith -Wcast-align @@ -39,7 +39,7 @@ ifneq ($(SYSTYPE),Darwin) LDFLAGS += -Wl,--gc-sections -Wl,-Map -Wl,$(SKETCHMAP) endif -LIBS = -lm +LIBS = -lm -lpthread ifeq ($(VERBOSE),) v = @