summaryrefslogtreecommitdiffstats
path: root/src/exiv2-1-lpsapi.patch
blob: 109f98af580c52e672f6730f615823ec0e2aa9ed (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 MXE.
See index.html for further information.

This patch is adapted from the Exiv2 svn trunk revision 3210.

diff -ur a/config/exiv2.pc.in b/config/exiv2.pc.in
--- a/config/exiv2.pc.in	2011-07-29 14:11:16.000000000 +0200
+++ b/config/exiv2.pc.in	2013-12-20 06:44:37.265187475 +0100
@@ -7,5 +7,5 @@
 Description: Image metadata library and tools
 Version: @PACKAGE_VERSION@
 Libs: -L${libdir} -lexiv2 @EXV_LIB_STATIC@
-Libs.private: @EXPAT_LDFLAGS@ @LTLIBINTL@ @LTLIBICONV@ @LIBS@ @EXPAT_LIBS@
+Libs.private: @EXPAT_LDFLAGS@ @LTLIBINTL@ @LTLIBICONV@ @LIBS@ @EXPAT_LIBS@ @EXV_LIBPSAPI@
 Cflags: -I${includedir}
diff -ur a/configure b/configure
--- a/configure	2013-12-01 13:29:47.000000000 +0100
+++ b/configure	2013-12-20 06:44:37.273191477 +0100
@@ -774,6 +774,7 @@
 ac_header_list=
 ac_subst_vars='LTLIBOBJS
 LIBOBJS
+EXV_LIBPSAPI
 EXV_LIB_STATIC
 ENABLE_XMP
 EXPAT_LIBS
@@ -17068,11 +17069,14 @@
 # version.cpp requires link to psapi/Windows and dl/Unix builds
 case "$host_os" in
 *mingw* | *cygwin*)
+    EXV_LIBPSAPI="-lpsapi"
     LDFLAGS="$LDFLAGS -no-undefined -lpsapi" ;;
 *)
+    EXV_LIBPSAPI=
     LDFLAGS="$LDFLAGS -ldl" ;;
 esac
 
+
 # ---------------------------------------------------------------------------
 # Create output files.
 # ---------------------------------------------------------------------------