From patchwork Fri Oct 23 16:05:04 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Fix crosscompilation for mkfs.ubifs Date: Fri, 23 Oct 2009 06:05:04 -0000 From: Matthias Fuchs X-Patchwork-Id: 36790 Message-Id: <200910231805.04917.matthias.fuchs@esd.eu> To: linux-mtd@lists.infradead.org This patch adds support for passing the location of the lzo library and headers. Also BUILDDIR must be referenced to find the libubi.a archive. Signed-off-by: Matthias Fuchs --- mkfs.ubifs/Makefile | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/mkfs.ubifs/Makefile b/mkfs.ubifs/Makefile index a678b0a..61d0e20 100644 --- a/mkfs.ubifs/Makefile +++ b/mkfs.ubifs/Makefile @@ -1,11 +1,13 @@ CPPFLAGS += -I../include -I../ubi-utils/include +CPPFLAGS += $(ZLIBCPPFLAGS) $(LZOCPPFLAGS) ALL_SOURCES=*.[ch] hashtable/*.[ch] TARGETS = mkfs.ubifs -LDLIBS_mkfs.ubifs = -lz -llzo2 -lm -luuid -L../ubi-utils/ -lubi +LDLIBS_mkfs.ubifs = -lz -llzo2 -lm -luuid -L$(BUILDDIR)/../ubi-utils/ -lubi +LDLIBS_mkfs.ubifs += $(ZLIBLDFLAGS) $(LZOLDFLAGS) include ../common.mk