]> git.sur5r.net Git - i3/i3/commitdiff
don’t link against librt on Mac OS X (Thanks Marcus)
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 2 May 2012 18:06:57 +0000 (20:06 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 2 May 2012 18:06:57 +0000 (20:06 +0200)
common.mk

index 537d4dda5d43e492a144a5a0fc19290206ab1c00..439490596d38ff0b910c6b34896d400fea577af8 100644 (file)
--- 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)