aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/lz
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/liblzma/liblzma.pc.in (renamed from src/liblzma/lzma.pc.in)5
-rw-r--r--src/liblzma/lz/lz_encoder.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/src/liblzma/lzma.pc.in b/src/liblzma/liblzma.pc.in
index 5bf9bb10..e192352f 100644
--- a/src/liblzma/lzma.pc.in
+++ b/src/liblzma/liblzma.pc.in
@@ -4,8 +4,9 @@ libdir=@libdir@
includedir=@includedir@
Name: liblzma
-Description: LZMA compression library
-URL: http://tukaani.org/lzma/
+Description: General purporse data compression library
+URL: http://tukaani.org/xz/
Version: @PACKAGE_VERSION@
Cflags: -I${includedir}
Libs: -L${libdir} -llzma
+Libs.private: @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
diff --git a/src/liblzma/lz/lz_encoder.c b/src/liblzma/lz/lz_encoder.c
index d598f71a..7bd6d03e 100644
--- a/src/liblzma/lz/lz_encoder.c
+++ b/src/liblzma/lz/lz_encoder.c
@@ -472,6 +472,12 @@ lzma_lz_encoder_init(lzma_next_coder *next, lzma_allocator *allocator,
lzma_allocator *allocator, const void *options,
lzma_lz_options *lz_options))
{
+#ifdef HAVE_SMALL
+ // We need that the CRC32 table has been initialized.
+ // This is enough to do it.
+ lzma_crc32(NULL, 0, 0);
+#endif
+
// Allocate and initialize the base data structure.
if (next->coder == NULL) {
next->coder = lzma_alloc(sizeof(lzma_coder), allocator);