Преглед изворни кода

Add "rt" library for Linux

Some Linux distributions seem to require linking to "rt"
bel2125 пре 5 година
родитељ
комит
99d6c6d24c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      examples/embedded_c/Makefile

+ 1 - 1
examples/embedded_c/Makefile

@@ -18,7 +18,7 @@ LIBS = -lpthread
 include $(TOP)/resources/Makefile.in-os
 include $(TOP)/resources/Makefile.in-os
 
 
 ifeq ($(TARGET_OS),LINUX) 
 ifeq ($(TARGET_OS),LINUX) 
-	LIBS += -ldl
+	LIBS += -ldl -lrt
 endif
 endif
 
 
 all: $(PROG)
 all: $(PROG)