Add -lpsapi to Libs.private in exiv2.pc on MinGW/Cygwin builds. Needed for static libraries.

This commit is contained in:
nkbj 2013-12-14 00:51:48 +00:00
parent 1bcea3092c
commit 3824b03136
2 changed files with 4 additions and 1 deletions

View File

@ -211,10 +211,13 @@ AC_SUBST(EXV_LIB_STATIC)
# version.cpp requires link to psapi/Windows and dl/Unix builds # version.cpp requires link to psapi/Windows and dl/Unix builds
case "$host_os" in case "$host_os" in
*mingw* | *cygwin*) *mingw* | *cygwin*)
EXV_LIBPSAPI="-lpsapi"
LDFLAGS="$LDFLAGS -no-undefined -lpsapi" ;; LDFLAGS="$LDFLAGS -no-undefined -lpsapi" ;;
*) *)
EXV_LIBPSAPI=
LDFLAGS="$LDFLAGS -ldl" ;; LDFLAGS="$LDFLAGS -ldl" ;;
esac esac
AC_SUBST(EXV_LIBPSAPI)
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Create output files. # Create output files.

View File

@ -7,5 +7,5 @@ Name: exiv2
Description: Image metadata library and tools Description: Image metadata library and tools
Version: @PACKAGE_VERSION@ Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lexiv2 @EXV_LIB_STATIC@ 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} Cflags: -I${includedir}