MK: remove unused and undefined librt as build flag for macosx

This commit is contained in:
Siddharth Bharat Purohit 2016-06-21 16:21:01 +05:30 committed by Lucas De Marchi
parent 8903bc9eab
commit 98c97a689f
1 changed files with 6 additions and 1 deletions

View File

@ -57,12 +57,17 @@ CFLAGS += $(WARNFLAGS) $(DEPFLAGS) $(COPTS)
ASFLAGS = -g $(CPUFLAGS) $(DEFINES) -Wa,$(LISTOPTS) $(DEPFLAGS) ASFLAGS = -g $(CPUFLAGS) $(DEFINES) -Wa,$(LISTOPTS) $(DEPFLAGS)
ASFLAGS += $(ASOPTS) ASFLAGS += $(ASOPTS)
LDFLAGS = -g $(CPUFLAGS) $(OPTFLAGS) $(WARNFLAGS) LDFLAGS = -g $(CPUFLAGS) $(OPTFLAGS) $(WARNFLAGS)
UNAME_S := $(shell uname -s)
ifneq ($(SYSTYPE),Darwin) ifneq ($(SYSTYPE),Darwin)
LDFLAGS += -Wl,--gc-sections -Wl,-Map -Wl,$(SKETCHMAP) LDFLAGS += -Wl,--gc-sections -Wl,-Map -Wl,$(SKETCHMAP)
endif endif
LIBS ?= -lm -lrt -pthread LIBS ?= -lm -pthread
ifneq ($(UNAME_S),Darwin)
CXXFLAGS += -lrt
endif
ifneq ($(findstring CYGWIN, $(SYSTYPE)),) ifneq ($(findstring CYGWIN, $(SYSTYPE)),)
LIBS += -lwinmm LIBS += -lwinmm
endif endif