]> www.infradead.org Git - mtd-utils.git/commitdiff
mkfs.ubifs: fix crosscompilation issues
authorMatthias Fuchs <matthias.fuchs@esd.eu>
Fri, 23 Oct 2009 16:05:04 +0000 (18:05 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sat, 24 Oct 2009 17:12:24 +0000 (20:12 +0300)
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 <matthias.fuchs@esd.eu>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
mkfs.ubifs/Makefile

index a678b0a63a272cf77003d43eec2d88904bd93c45..61d0e20d8257f9faf6e060b901aba10e48792a5e 100644 (file)
@@ -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