From: Michael Stapelberg Date: Wed, 2 May 2012 18:06:57 +0000 (+0200) Subject: don’t link against librt on Mac OS X (Thanks Marcus) X-Git-Tag: 4.3~236^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=07a385bb7ad36fa567972e999f743fa4aaaf5cd2;p=i3%2Fi3 don’t link against librt on Mac OS X (Thanks Marcus) --- 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)