diff options
author | Jia Tan <jiat0218@gmail.com> | 2022-10-05 20:57:16 +0800 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-10-05 16:11:33 +0300 |
commit | 14af758a770c7781af18fb66d6d21ee5b1c27f04 (patch) | |
tree | d135020220aabe633bc862a55990e85a94aac7cb /src | |
parent | Tests: Fix compilation error when threading support has been disabled. (diff) | |
download | xz-14af758a770c7781af18fb66d6d21ee5b1c27f04.tar.xz |
liblzma: Fix a compilation issue when encoders are disabled.
When encoders were disabled and threading enabled, outqueue.c and
outqueue.h were not compiled. The multi threaded decoder required
these files, so compilation failed.
Diffstat (limited to '')
-rw-r--r-- | src/liblzma/common/Makefile.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/liblzma/common/Makefile.inc b/src/liblzma/common/Makefile.inc index 8f0d84ec..78bc95bb 100644 --- a/src/liblzma/common/Makefile.inc +++ b/src/liblzma/common/Makefile.inc @@ -22,7 +22,10 @@ liblzma_la_SOURCES += \ common/vli_size.c if COND_THREADS -liblzma_la_SOURCES += common/hardware_cputhreads.c +liblzma_la_SOURCES += \ + common/hardware_cputhreads.c \ + common/outqueue.c \ + common/outqueue.h endif if COND_MAIN_ENCODER @@ -50,8 +53,6 @@ liblzma_la_SOURCES += \ if COND_THREADS liblzma_la_SOURCES += \ - common/outqueue.c \ - common/outqueue.h \ common/stream_encoder_mt.c endif endif |