diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2023-09-29 20:46:11 +0300 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2023-10-31 18:44:59 +0800 |
commit | 4083c8e9501a48934a5fb563d2c3ce2ae143cd27 (patch) | |
tree | 2e1622c37bcca903fb89177bf9e02002884364f1 /src | |
parent | CMake: Create liblzma.def when building liblzma.dll with MinGW-w64. (diff) | |
download | xz-4083c8e9501a48934a5fb563d2c3ce2ae143cd27.tar.xz |
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/
Diffstat (limited to 'src')
-rw-r--r-- | src/liblzma/liblzma.pc.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liblzma/liblzma.pc.in b/src/liblzma/liblzma.pc.in index 9fa48911..d077cb77 100644 --- a/src/liblzma/liblzma.pc.in +++ b/src/liblzma/liblzma.pc.in @@ -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@ |