On Thu, Aug 12, 2010 at 01:49:46PM -0400, Adam Stokes wrote:
diff --git a/configure.ac b/configure.ac
index 1dfdd80..451d0b1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,17 +32,38 @@ if test x"$HASQMFGEN" = "x"; then
fi
dnl ---------------------------------------------------------------------
+dnl Test for WIN32
+dnl ---------------------------------------------------------------------
+WIN32="no"
+case "$host" in
+ *-*-mingw*)
+ WIN32="yes"
+ MINGW_EXTRA_LDFLAGS="-no-undefined"
+ ;;
+ *)
+ ;;
+esac
+AM_CONDITIONAL(WIN32, test "${WIN32}" = "yes")
+AC_SUBST([WIN32])
+AC_SUBST([MINGW_EXTRA_LDFLAGS])
You might want to use this flag on cygwin and even Linux too,
that will help avoid regressions in win32 builds. Only note is
that Linux and Solaris require a slightly different syntx. In
GTK-VNC I use this m4 to control it:
NO_UNDEFINED_LDFLAGS=
case "$host" in
*-*-mingw*)
NO_UNDEFINED_FLAGS="-no-undefined"
;;
*-*-cygwin*)
NO_UNDEFINED_FLAGS="-no-undefined"
;;
*)
NO_UNDEFINED_FLAGS="-Wl,--no-undefined"
;;
esac
AC_SUBST([NO_UNDEFINED_FLAGS])
Regards,
Daniel
--
|: Red Hat, Engineering, London -o-
http://people.redhat.com/berrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org -o-
http://deltacloud.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|