summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac13
-rw-r--r--libcsoap/Makefile.am2
-rw-r--r--nanohttp/Makefile.am2
3 files changed, 14 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 7c00430..0ae5f21 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,7 +16,7 @@ AC_LANG_C
AC_PROG_CC
AC_PROG_AWK
AC_PROG_INSTALL
-AC_PROG_LIBTOOL
+LT_INIT(win32-dll)
dnl
dnl release and version information
@@ -73,6 +73,17 @@ AC_CHECK_LIB(uuid, uuid_create, [LIBUUID="-luuid"])
AC_CHECK_FUNCS([uuid_to_string, uuid_create])
AC_SUBST(LIBUUID)
+dnl
+dnl check host dependend flags
+dnl
+LIB_EXTRA_LDFLAGS=
+case "$host" in
+ *-*-mingw*|*-*-cygwin*)
+ LIB_EXTRA_LDFLAGS="-no-undefined"
+ ;;
+esac
+AC_SUBST(LIB_EXTRA_LDFLAGS)
+
dnl @synopsis ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
dnl
dnl @summary figure out how to build C programs using POSIX threads
diff --git a/libcsoap/Makefile.am b/libcsoap/Makefile.am
index a19775f..06459eb 100644
--- a/libcsoap/Makefile.am
+++ b/libcsoap/Makefile.am
@@ -42,6 +42,6 @@ libcsoap_la_SOURCES+=soap-xmlsec.c
libcsoap_la_HEADERS+=soap-xmlsec.h
endif
-libcsoap_la_LDFLAGS= -version-info @csoap_version@ -release @csoap_release@
+libcsoap_la_LDFLAGS= -version-info @csoap_version@ -release @csoap_release@ $(LIB_EXTRA_LDFLAGS)
libcsoap_la_CFLAGS=-I${top_srcdir} -D__CSOAP_INTERNAL=1
diff --git a/nanohttp/Makefile.am b/nanohttp/Makefile.am
index a82cd00..6e05dac 100644
--- a/nanohttp/Makefile.am
+++ b/nanohttp/Makefile.am
@@ -38,6 +38,6 @@ libnanohttp_la_SOURCES+=nanohttp-ssl.c
libnanohttp_la_HEADERS+=nanohttp-ssl.h
endif
-libnanohttp_la_LDFLAGS= -version-info @nanohttp_version@ -release @nanohttp_release@
+libnanohttp_la_LDFLAGS= -version-info @nanohttp_version@ -release @nanohttp_release@ $(LIB_EXTRA_LDFLAGS)
libnanohttp_la_CFLAGS=-I${top_srcdir} -D__NHTTP_INTERNAL=1