X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common.mk;h=439490596d38ff0b910c6b34896d400fea577af8;hb=c008f3f9289292d267aa5bca62c2a8f130c3caf8;hp=4394bc41958b7436341fabf212b62affdfbaba76;hpb=6c112f2a9a5de4c3ef06d4cbce2bd7b22c0caa1d;p=i3%2Fi3 diff --git a/common.mk b/common.mk index 4394bc41..43949059 100644 --- a/common.mk +++ b/common.mk @@ -68,6 +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)