summaryrefslogtreecommitdiffstats
path: root/guththila
diff options
context:
space:
mode:
Diffstat (limited to 'guththila')
-rw-r--r--guththila/configure.ac13
-rw-r--r--guththila/src/Makefile.am4
2 files changed, 15 insertions, 2 deletions
diff --git a/guththila/configure.ac b/guththila/configure.ac
index 38934f1..34e4bee 100644
--- a/guththila/configure.ac
+++ b/guththila/configure.ac
@@ -67,6 +67,19 @@ if test "$GCC" = "yes"; then
CFLAGS="$CFLAGS -ansi -ggdb3 -Wall -Wno-implicit-function-declaration "
fi
+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)
dnl Checks for header files.
AC_HEADER_STDC
diff --git a/guththila/src/Makefile.am b/guththila/src/Makefile.am
index 5df4bce..67f0b41 100644
--- a/guththila/src/Makefile.am
+++ b/guththila/src/Makefile.am
@@ -14,8 +14,6 @@
# limitations under the License.
lib_LTLIBRARIES = libguththila.la
-libguththila_la_LDFLAGS = -version-info $(VERSION_NO)
-
libguththila_la_SOURCES = guththila_buffer.c \
guththila_namespace.c \
guththila_token.c \
@@ -27,6 +25,8 @@ libguththila_la_SOURCES = guththila_buffer.c \
libguththila_la_LIBADD = ../../util/src/libaxutil.la
+libguththila_la_LDFLAGS = -version-info $(VERSION_NO) $(WIN32_EXTRA_LDFLAGS)
+
INCLUDES = -I$(top_builddir)/include \
-I ../../util/include