Quellcode durchsuchen

Only include -lrt if on Linux

Daniel Oaks vor 10 Jahren
Ursprung
Commit
90adb0d115
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  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