Merge pull request #1017 from lnslbrty/fix/mingw-xcompile

Added support for mingw xcompile.
This commit is contained in:
Luca Deri
2020-09-20 18:33:40 +02:00
committed by GitHub
9 changed files with 64 additions and 15 deletions
+2
View File
@@ -108,6 +108,7 @@ case "$host" in
*-*-mingw32*|*-*-msys)
CFLAGS="${CFLAGS} -DOS_WIN32"
LDFLAGS="${LDFLAGS} -lws2_32 -lucrtbase"
BUILD_MINGW=1
;;
*)
if test -f $PCAP_HOME/libpcap/libpcap.a; then :
@@ -206,4 +207,5 @@ AC_SUBST(HAVE_PTHREAD_SETAFFINITY_NP)
AC_SUBST(CUSTOM_NDPI)
AC_SUBST(NDPI_API_VERSION)
AC_SUBST(EXTRA_TARGETS)
AC_SUBST(BUILD_MINGW)
AC_OUTPUT