110-allow_static_liblzma.patch 666 B

123456789101112131415161718192021222324252627282930
  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
  7. -LIBS += -llzma
  8. COMPRESSORS += lzma
  9. endif
  10. @@ -137,10 +136,18 @@ ifeq ($(XZ_SUPPORT),1)
  11. CFLAGS += -DXZ_SUPPORT
  12. MKSQUASHFS_OBJS += xz_wrapper.o
  13. UNSQUASHFS_OBJS += xz_wrapper.o
  14. -LIBS += -llzma
  15. COMPRESSORS += xz
  16. endif
  17. +ifneq ($(LZMA_XZ_SUPPORT)$(XZ_SUPPORT),)
  18. +ifneq ($(LZMA_LIB),)
  19. +MKSQUASHFS_OBJS += $(LZMA_LIB)
  20. +UNSQUASHFS_OBJS += $(LZMA_LIB)
  21. +else
  22. +LIBS += -llzma
  23. +endif
  24. +endif
  25. +
  26. ifeq ($(LZO_SUPPORT),1)
  27. CFLAGS += -DLZO_SUPPORT
  28. ifdef LZO_DIR