From 7d61535076aa1ca484f453594b29e2ca052c2505 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sat, 16 Feb 2013 18:30:45 +0100 Subject: Fix building with mingw and make sure linking generates proper DLL files --- util/configure.ac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'util/configure.ac') diff --git a/util/configure.ac b/util/configure.ac index 65555da..ccb808b 100644 --- a/util/configure.ac +++ b/util/configure.ac @@ -196,6 +196,20 @@ AC_SUBST([PLATFORM]) AC_DEFINE([HOST_OS_MINGW], 1, [define if we are on mingw]) +dnl Check for cygwin and mingw builds to allow building DLLs +WIN32_EXTRA_LIBADD= +WIN32_EXTRA_LDFLAGS= +case "$host" in + *-*-cygwin*) + WIN32_EXTRA_LDFLAGS="-no-undefined -avoid-version" + ;; + *-*-mingw*) + WIN32_EXTRA_LDFLAGS="-no-undefined -avoid-version" + ;; +esac +AC_SUBST(WIN32_EXTRA_LIBADD) +AC_SUBST(WIN32_EXTRA_LDFLAGS) + AC_MSG_CHECKING(whether to build guththila xml parser library) AC_ARG_ENABLE(guththila, [ --enable-guththila build guththila xml parser library wrapper. default=no], [ case "${enableval}" in -- cgit v1.1-32-gdbae