]> granicus.if.org Git - xz/commitdiff
Build: Don't omit lzma_cputhreads() unless using --disable-threads.
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 3 Nov 2015 15:41:54 +0000 (17:41 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 3 Nov 2015 15:41:54 +0000 (17:41 +0200)
Previously it was omitted if encoders were disabled
with --disable-encoders. It didn't make sense and
it also broke the build.

src/liblzma/common/Makefile.inc

index 38a634168030071201926e5ce1da12da1ea64c23..6ca6adddae711f36abb45fe5f1a3042e1a78575a 100644 (file)
@@ -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