liblzma: Add Cflags.private to liblzma.pc.in for MSYS2.

It properly adds -DLZMA_API_STATIC when compiling code that
will be linked against static liblzma. Having it there on
systems other than Windows does no harm.

See: https://www.msys2.org/docs/pkgconfig/
(cherry picked from commit 4083c8e950)
This commit is contained in:
Lasse Collin 2023-09-29 20:46:11 +03:00
parent 23f50b8108
commit 3c026350e8
1 changed files with 1 additions and 0 deletions

View File

@ -15,5 +15,6 @@ Description: General purpose data compression library
URL: @PACKAGE_URL@ URL: @PACKAGE_URL@
Version: @PACKAGE_VERSION@ Version: @PACKAGE_VERSION@
Cflags: -I${includedir} Cflags: -I${includedir}
Cflags.private: -DLZMA_API_STATIC
Libs: -L${libdir} -llzma Libs: -L${libdir} -llzma
Libs.private: @PTHREAD_CFLAGS@ @LIBS@ Libs.private: @PTHREAD_CFLAGS@ @LIBS@