summaryrefslogtreecommitdiffstats
path: root/src/exiv2-r2472.patch
blob: 80167575db36560951997275cfc9db178d9c824e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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.
 # ---------------------------------------------------------------------------