Skip to content

Commit

Permalink
Fix mingw build on ubuntu 20.04
Browse files Browse the repository at this point in the history
- Link libssp to resolve undefined reference __memcpy_chk
- Disable dtlstest since mingw does not have poll
  • Loading branch information
kinichiro committed May 30, 2021
1 parent 31ef9ad commit 420723e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion m4/check-os-options.m4
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ char buf[1]; getentropy(buf, 1);
CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_THREAD_SAFE_FUNCTIONS"
CPPFLAGS="$CPPFLAGS -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0600"
CPPFLAGS="$CPPFLAGS"
AC_SUBST([PLATFORM_LDADD], ['-lws2_32 -lbcrypt'])
AC_SUBST([PLATFORM_LDADD], ['-lws2_32 -lbcrypt -lssp'])
;;
*solaris*)
HOST_OS=solaris
Expand Down
2 changes: 2 additions & 0 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,11 @@ check_PROGRAMS += dsatest
dsatest_SOURCES = dsatest.c

# dtlstest
if !HOST_WIN
TESTS += dtlstest.sh
check_PROGRAMS += dtlstest
dtlstest_SOURCES = dtlstest.c
endif
EXTRA_DIST += dtlstest.sh

# ec_point_conversion
Expand Down

0 comments on commit 420723e

Please sign in to comment.