mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28:29 -04:00
mk: board_native: link with librt
This fix compilation errors on some systems that require linking with that library in order to use some functions.
This commit is contained in:
parent
ed2718a183
commit
89ebe34992
@ -62,7 +62,7 @@ ifneq ($(SYSTYPE),Darwin)
|
|||||||
LDFLAGS += -Wl,--gc-sections -Wl,-Map -Wl,$(SKETCHMAP)
|
LDFLAGS += -Wl,--gc-sections -Wl,-Map -Wl,$(SKETCHMAP)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LIBS ?= -lm -pthread
|
LIBS ?= -lm -lrt -pthread
|
||||||
ifneq ($(findstring CYGWIN, $(SYSTYPE)),)
|
ifneq ($(findstring CYGWIN, $(SYSTYPE)),)
|
||||||
LIBS += -lwinmm
|
LIBS += -lwinmm
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user