Explorar el Código

Only include -lrt if on Linux

Daniel Oaks hace 10 años
padre
commit
90adb0d115
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      Makefile

+ 3 - 1
Makefile

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