From: Matthias Fuchs Date: Fri, 23 Oct 2009 16:05:04 +0000 (+0200) Subject: mkfs.ubifs: fix crosscompilation issues X-Git-Tag: v1.3.0~6 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=600337e7c81e812d34460b413c5b044f454bc49d;p=mtd-utils.git mkfs.ubifs: fix crosscompilation issues 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 Signed-off-by: Artem Bityutskiy --- 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