mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
MK: remove unused and undefined librt as build flag for macosx
This commit is contained in:
parent
8903bc9eab
commit
98c97a689f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user