build: added -lrt for Linux build

This commit is contained in:
Andrew Tridgell 2013-10-08 11:49:07 +11:00
parent c17a5e5ed1
commit 561618b2b2
2 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,7 @@ ifneq ($(SYSTYPE),Darwin)
LDFLAGS += -Wl,--gc-sections -Wl,-Map -Wl,$(SKETCHMAP)
endif
LIBS = -lm -lpthread
LIBS ?= -lm -lpthread
ifeq ($(VERBOSE),)
v = @

View File

@ -4,4 +4,5 @@ include $(MK_DIR)/find_tools.mk
# Linux build is just the same as SITL for now
OPTFLAGS = -O0
LIBS = -lm -lpthread -lrt
include $(MK_DIR)/board_avr_sitl.mk