From 5c105d9f3fd086aff195d3849dcf847d6b0bd927 Mon Sep 17 00:00:00 2001 From: blogic Date: Fri, 5 Oct 2012 10:12:53 +0000 Subject: branch Attitude Adjustment git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33625 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches/110-allow_static_liblzma.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tools/squashfs4/patches/110-allow_static_liblzma.patch (limited to 'tools/squashfs4/patches/110-allow_static_liblzma.patch') diff --git a/tools/squashfs4/patches/110-allow_static_liblzma.patch b/tools/squashfs4/patches/110-allow_static_liblzma.patch new file mode 100644 index 000000000..9a3a74418 --- /dev/null +++ b/tools/squashfs4/patches/110-allow_static_liblzma.patch @@ -0,0 +1,30 @@ +--- a/squashfs-tools/Makefile ++++ b/squashfs-tools/Makefile +@@ -129,7 +129,6 @@ ifeq ($(LZMA_XZ_SUPPORT),1) + CFLAGS += -DLZMA_SUPPORT + MKSQUASHFS_OBJS += lzma_xz_wrapper.o + UNSQUASHFS_OBJS += lzma_xz_wrapper.o +-LIBS += -llzma + COMPRESSORS += lzma + endif + +@@ -137,10 +136,18 @@ ifeq ($(XZ_SUPPORT),1) + CFLAGS += -DXZ_SUPPORT + MKSQUASHFS_OBJS += xz_wrapper.o + UNSQUASHFS_OBJS += xz_wrapper.o +-LIBS += -llzma + COMPRESSORS += xz + endif + ++ifneq ($(LZMA_XZ_SUPPORT)$(XZ_SUPPORT),) ++ifneq ($(LZMA_LIB),) ++MKSQUASHFS_OBJS += $(LZMA_LIB) ++UNSQUASHFS_OBJS += $(LZMA_LIB) ++else ++LIBS += -llzma ++endif ++endif ++ + ifeq ($(LZO_SUPPORT),1) + CFLAGS += -DLZO_SUPPORT + ifdef LZO_DIR -- cgit v1.2.3