Browse Source

Merge pull request #111 from DanielOaks/fix-osx

Only include -lrt if on Linux
bel2125 10 năm trước cách đây
mục cha
commit
53bbd18a4a
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      Makefile

+ 3 - 1
Makefile

@@ -93,7 +93,9 @@ ifdef WITH_WEBSOCKET
   CFLAGS += -DUSE_WEBSOCKET
   ifdef WITH_LUA
     CFLAGS += -DUSE_TIMERS
-    LIBS += -lrt
+    ifeq ($(TARGET_OS),LINUX)
+      LIBS += -lrt
+    endif
   endif
 endif