don’t link against librt on Mac OS X (Thanks Marcus)

This commit is contained in:
Michael Stapelberg 2012-05-02 20:06:57 +02:00
parent eedd1a64d7
commit 07a385bb7a
1 changed files with 3 additions and 0 deletions

View File

@ -68,7 +68,10 @@ CPPFLAGS += -DPCRE_HAS_UCP=1
endif endif
LIBS += -lm LIBS += -lm
# Darwin (Mac OS X) doesnt have librt
ifneq ($(UNAME),Darwin)
LIBS += -lrt LIBS += -lrt
endif
LIBS += -L $(TOPDIR)/libi3 -li3 LIBS += -L $(TOPDIR)/libi3 -li3
LIBS += $(call ldflags_for_lib, xcb-event,xcb-event) LIBS += $(call ldflags_for_lib, xcb-event,xcb-event)
LIBS += $(call ldflags_for_lib, xcb-keysyms,xcb-keysyms) LIBS += $(call ldflags_for_lib, xcb-keysyms,xcb-keysyms)