build: added -lpthread and SKETCHNAME in build

This commit is contained in:
Andrew Tridgell 2013-09-28 14:59:40 +10:00
parent 49d3d624d7
commit 71d0b294c5

View File

@ -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 = @