From a4d33e220add0d837e736ce8209dd96183938b53 Mon Sep 17 00:00:00 2001 From: Hilko Bengen Date: Sat, 21 Feb 2015 01:42:32 +0100 Subject: [PATCH] Add workaround for link failure (undefined reference to '_time32') when cross-compiling with MinGW --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 86e6d3ccf2..de51374e78 100644 --- a/configure.ac +++ b/configure.ac @@ -20,6 +20,12 @@ AC_PROG_YACC LT_INIT AC_PROG_LIBTOOL +AC_CANONICAL_HOST + +case $host_alias in + i?86-*-mingw*) CFLAGS="$CFLAGS -D__MINGW_USE_VC2005_COMPAT" ;; +esac + AC_ARG_ENABLE([dmalloc], [AS_HELP_STRING([--enable-dmalloc], [enable dmalloc to debug heap-related issues])],