]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Add Cflags.private to liblzma.pc.in for MSYS2.
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 29 Sep 2023 17:46:11 +0000 (20:46 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 26 Oct 2023 18:46:06 +0000 (21:46 +0300)
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/

src/liblzma/liblzma.pc.in

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