Link with -lpthread if iSER is enabled
This patch fixes the following linker error: /usr/bin/ld: ../lib/.libs/libiscsipriv.a(libiscsipriv_la-iser.o): undefined reference to symbol 'sem_post@@GLIBC_2.2.5' /usr/bin/ld: //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line Signed-off-by: Bart Van Assche <bvanassche@acm.org>
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ libiscsipriv_la_SOURCES += iser.c
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if HAVE_LINUX_ISER
|
if HAVE_LINUX_ISER
|
||||||
libiscsipriv_la_LDFLAGS = -libverbs -lrdmacm
|
libiscsipriv_la_LDFLAGS = -libverbs -lrdmacm -lpthread
|
||||||
endif
|
endif
|
||||||
|
|
||||||
libiscsipriv_la_CPPFLAGS = -I${srcdir}/../include -I$(srcdir)/include \
|
libiscsipriv_la_CPPFLAGS = -I${srcdir}/../include -I$(srcdir)/include \
|
||||||
|
|||||||
Reference in New Issue
Block a user