Add -lpsapi to Libs.private in exiv2.pc on MinGW/Cygwin builds. Needed for static libraries.
This commit is contained in:
parent
1bcea3092c
commit
3824b03136
@ -211,10 +211,13 @@ AC_SUBST(EXV_LIB_STATIC)
|
||||
# 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
|
||||
AC_SUBST(EXV_LIBPSAPI)
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Create output files.
|
||||
|
||||
@ -7,5 +7,5 @@ Name: exiv2
|
||||
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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user