diff --git a/common.mk b/common.mk index 537d4dda..43949059 100644 --- a/common.mk +++ b/common.mk @@ -68,7 +68,10 @@ CPPFLAGS += -DPCRE_HAS_UCP=1 endif LIBS += -lm +# Darwin (Mac OS X) doesn’t have librt +ifneq ($(UNAME),Darwin) LIBS += -lrt +endif LIBS += -L $(TOPDIR)/libi3 -li3 LIBS += $(call ldflags_for_lib, xcb-event,xcb-event) LIBS += $(call ldflags_for_lib, xcb-keysyms,xcb-keysyms)