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
|
# 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.
|
||||||
|
|||||||
@ -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}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user