Ver código fonte

Add "rt" library for Linux

Some Linux distributions seem to require linking to "rt"
bel2125 5 anos atrás
pai
commit
99d6c6d24c
1 arquivos alterados com 1 adições e 1 exclusões
  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
 
 ifeq ($(TARGET_OS),LINUX) 
-	LIBS += -ldl
+	LIBS += -ldl -lrt
 endif
 
 all: $(PROG)