From 1923d9029e0c6244aa8bae4d4a511017c158d4d9 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Wed, 6 Jul 2016 11:10:59 -0300 Subject: [PATCH] mk: use SYSTYPE for Darwin and append to LIBS --- mk/board_native.mk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mk/board_native.mk b/mk/board_native.mk index a77511a26b..a97fe23fcd 100644 --- a/mk/board_native.mk +++ b/mk/board_native.mk @@ -57,17 +57,16 @@ CFLAGS += $(WARNFLAGS) $(DEPFLAGS) $(COPTS) ASFLAGS = -g $(CPUFLAGS) $(DEFINES) -Wa,$(LISTOPTS) $(DEPFLAGS) ASFLAGS += $(ASOPTS) LDFLAGS = -g $(CPUFLAGS) $(OPTFLAGS) $(WARNFLAGS) -UNAME_S := $(shell uname -s) ifneq ($(SYSTYPE),Darwin) LDFLAGS += -Wl,--gc-sections -Wl,-Map -Wl,$(SKETCHMAP) endif LIBS ?= -lm -pthread -ifneq ($(UNAME_S),Darwin) -CXXFLAGS += -lrt -endif +ifneq ($(SYSTYPE),Darwin) +LIBS += -lrt +endif ifneq ($(findstring CYGWIN, $(SYSTYPE)),) LIBS += -lwinmm endif