Co-authored-by: Ben Pfaff <blp at nicira.com> Signed-off-by: Ben Pfaff <blp at nicira.com> Signed-off-by: Alin Gabriel Serdean <aserd...@cloudbasesolutions.com> --- m4/openvswitch.m4 | 7 +++++-- tests/automake.mk | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4 index f89cde0..087c7e5 100644 --- a/m4/openvswitch.m4 +++ b/m4/openvswitch.m4 @@ -86,9 +86,12 @@ AC_DEFUN([OVS_CHECK_WIN32], AC_MSG_ERROR([Invalid --with-pthread value]) ;; *) - PTHREAD_INCLUDES="-I$withval/include" - PTHREAD_LDFLAGS="-L$withval/lib/x86" + PTHREAD_WIN32_DIR=$withval/lib/x86 + PTHREAD_WIN32_DIR_DLL=/${withval/:/}/dll/x86 + PTHREAD_INCLUDES=-I$withval/include + PTHREAD_LDFLAGS=-L$PTHREAD_WIN32_DIR PTHREAD_LIBS="-lpthreadVC2" + AC_SUBST([PTHREAD_WIN32_DIR_DLL]) AC_SUBST([PTHREAD_INCLUDES]) AC_SUBST([PTHREAD_LDFLAGS]) AC_SUBST([PTHREAD_LIBS]) diff --git a/tests/automake.mk b/tests/automake.mk index 3f57114..153d4e1 100644 --- a/tests/automake.mk +++ b/tests/automake.mk @@ -95,7 +95,7 @@ TESTSUITE_PATCH = $(srcdir)/tests/testsuite.patch KMOD_TESTSUITE = $(srcdir)/tests/kmod-testsuite DISTCLEANFILES += tests/atconfig tests/atlocal -AUTOTEST_PATH = utilities:vswitchd:ovsdb:vtep:tests +AUTOTEST_PATH = utilities:vswitchd:ovsdb:vtep:tests:$(PTHREAD_WIN32_DIR_DLL) check-local: tests/atconfig tests/atlocal $(TESTSUITE) $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=$(AUTOTEST_PATH) $(TESTSUITEFLAGS) -- 1.9.5.msysgit.0 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev