[Forensics-changes] [yara] 27/160: Add workaround for link failure (undefined reference to '_time32') when cross-compiling with MinGW

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:29:14 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.4.0
in repository yara.

commit a4d33e220add0d837e736ce8209dd96183938b53
Author: Hilko Bengen <bengen at hilluzination.de>
Date:   Sat Feb 21 01:42:32 2015 +0100

    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 86e6d3c..de51374 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])],

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list