From: Oliver Kurth Date: Tue, 5 Jun 2018 22:47:38 +0000 (-0700) Subject: open-vm-tools: build dndcp with thread libs X-Git-Tag: stable-11.0.0~552 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0701b481beb3b310e733d65667fa59ad0b64d9c9;p=thirdparty%2Fopen-vm-tools.git open-vm-tools: build dndcp with thread libs Recent changes in the dndcp plugin made it necessary to make sure that it links against pthread libs. --- diff --git a/open-vm-tools/configure.ac b/open-vm-tools/configure.ac index 54e2f1802..af668172e 100644 --- a/open-vm-tools/configure.ac +++ b/open-vm-tools/configure.ac @@ -899,14 +899,14 @@ if test "$os" = "freebsd" -a "$osVersion" -ge 600000; then AC_CHECK_LIB( [thr], [pthread_mutex_init], - [THREAD_LIB=-lthr], + [THREAD_LIBS=-lthr], [AC_MSG_ERROR( [Unable to locate required threading library libthr.])]) else AC_CHECK_LIB( [pthread], [pthread_mutex_init], - [THREAD_LIB=-lpthread], + [THREAD_LIBS=-lpthread], [AC_MSG_ERROR( [libpthread not found. Please install the libc/libpthread devel package(s).])]) fi @@ -1434,8 +1434,8 @@ if test "$HAVE_CRYPT" = "yes"; then fi -LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD $THREAD_LIB" -VIX_LIBADD="$VIX_LIBADD $THREAD_LIB" +LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD $THREAD_LIBS" +VIX_LIBADD="$VIX_LIBADD $THREAD_LIBS" ### Core Services definitions. @@ -1491,6 +1491,7 @@ AC_SUBST([PLUGIN_CPPFLAGS]) AC_SUBST([PLUGIN_LDFLAGS]) AC_SUBST([VMTOOLS_CPPFLAGS]) AC_SUBST([VMTOOLS_LIBS]) +AC_SUBST([THREAD_LIBS]) AC_SUBST([RPCGENFLAGS]) AC_SUBST([XDR_LIBS]) AC_SUBST([TEST_PLUGIN_INSTALLDIR]) diff --git a/open-vm-tools/services/plugins/dndcp/Makefile.am b/open-vm-tools/services/plugins/dndcp/Makefile.am index b4802ea6f..125b81afe 100644 --- a/open-vm-tools/services/plugins/dndcp/Makefile.am +++ b/open-vm-tools/services/plugins/dndcp/Makefile.am @@ -45,6 +45,7 @@ libdndcp_la_LIBADD += @GTK_LIBS@ libdndcp_la_LIBADD += @GTKMM_LIBS@ libdndcp_la_LIBADD += @VMTOOLS_LIBS@ libdndcp_la_LIBADD += @HGFS_LIBS@ +libdndcp_la_LIBADD += @THREAD_LIBS@ libdndcp_la_LIBADD += $(top_builddir)/lib/hgfsUri/hgfsUriPosix.lo libdndcp_la_SOURCES =