aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/common
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2015-11-03 17:41:54 +0200
committerLasse Collin <lasse.collin@tukaani.org>2015-11-03 17:41:54 +0200
commitb0bc3e03852af13419ea2960881824258d451117 (patch)
tree71a29b1d82eef0048716bcc43160d0fa6f60ceef /src/liblzma/common
parentliblzma: Fix a build failure related to external SHA-256 support. (diff)
downloadxz-b0bc3e03852af13419ea2960881824258d451117.tar.xz
Build: Don't omit lzma_cputhreads() unless using --disable-threads.
Previously it was omitted if encoders were disabled with --disable-encoders. It didn't make sense and it also broke the build.
Diffstat (limited to 'src/liblzma/common')
-rw-r--r--src/liblzma/common/Makefile.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/liblzma/common/Makefile.inc b/src/liblzma/common/Makefile.inc
index 38a63416..6ca6addd 100644
--- a/src/liblzma/common/Makefile.inc
+++ b/src/liblzma/common/Makefile.inc
@@ -21,6 +21,10 @@ liblzma_la_SOURCES += \
common/stream_flags_common.h \
common/vli_size.c
+if COND_THREADS
+liblzma_la_SOURCES += common/hardware_cputhreads.c
+endif
+
if COND_MAIN_ENCODER
liblzma_la_SOURCES += \
common/alone_encoder.c \
@@ -45,7 +49,6 @@ liblzma_la_SOURCES += \
if COND_THREADS
liblzma_la_SOURCES += \
- common/hardware_cputhreads.c \
common/outqueue.c \
common/outqueue.h \
common/stream_encoder_mt.c