view src/exiv2-r2472.patch @ 1709:b32558e52428

don't remove the "-no-undefined" flag, but provide clean bugfixes instead for packages exiv2 and xine-lib
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 27 Mar 2011 18:14:08 +0200
parents
children
line wrap: on
line source

# This file is part of mingw-cross-env.
# See doc/index.html for further information.

This patch has been taken from:
http://dev.exiv2.org/issues/767

Index: trunk/config/configure.ac
===================================================================
--- trunk/config/configure.ac	(revision 2471)
+++ trunk/config/configure.ac	(revision 2472)
@@ -31,12 +31,6 @@
 AC_PROG_LN_S
 AC_PROG_MAKE_SET
 AC_CANONICAL_HOST
-# Add flag for DLL on Windows
-case "$host_os" in
-*mingw* | *cygwin*)
-    LDFLAGS="$LDFLAGS -no-undefined"
-    ;;
-esac
 
 # ---------------------------------------------------------------------------
 # i18n support
@@ -204,6 +198,17 @@
 fi
 AC_SUBST(EXV_LIB_STATIC)
 
+# Add flag for DLL on Windows
+#
+# This must happen after all other configure checks, because
+# the "-no-undefined" flag is only for libtool and may not be
+# passed to GCC by accident.
+case "$host_os" in
+*mingw* | *cygwin*)
+    LDFLAGS="$LDFLAGS -no-undefined"
+    ;;
+esac
+
 # ---------------------------------------------------------------------------
 # Create output files.
 # ---------------------------------------------------------------------------