1 --- a/squashfs-tools/Makefile
2 +++ b/squashfs-tools/Makefile
3 @@ -129,7 +129,6 @@ ifeq ($(LZMA_XZ_SUPPORT),1)
4 CFLAGS += -DLZMA_SUPPORT
5 MKSQUASHFS_OBJS += lzma_xz_wrapper.o
6 UNSQUASHFS_OBJS += lzma_xz_wrapper.o
11 @@ -137,10 +136,18 @@ ifeq ($(XZ_SUPPORT),1)
12 CFLAGS += -DXZ_SUPPORT
13 MKSQUASHFS_OBJS += xz_wrapper.o
14 UNSQUASHFS_OBJS += xz_wrapper.o
19 +ifneq ($(LZMA_XZ_SUPPORT)$(XZ_SUPPORT),)
21 +MKSQUASHFS_OBJS += $(LZMA_LIB)
22 +UNSQUASHFS_OBJS += $(LZMA_LIB)
28 ifeq ($(LZO_SUPPORT),1)
29 CFLAGS += -DLZO_SUPPORT