]> www.infradead.org Git - mtd-utils.git/commitdiff
mtd-utils: Makefile: add LDFLAGS_mkfs.ubifs
authorAaron Sierra <asierra@xes-inc.com>
Fri, 27 Sep 2013 16:34:04 +0000 (11:34 -0500)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Sat, 26 Oct 2013 10:25:33 +0000 (11:25 +0100)
The build rule for mkfs.ubifs was missing an LDFLAGS_* variable like
mkfs.jffs2 had. This prevented mkfs.ubifs from being built against
explicit external libraries which is needed when cross-compiling.

This also adds UUIDCPPFLAGS and UUIDLDFLAGS variables to support the
mkfs.ubifs build.

Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
Makefile

index bf57a13ac63233f3618475de842b46ff4fcc0d26..4ff8a49eea87d24301a8ff3c8c752e6308f6c543 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
 
 VERSION = 1.5.0
 
-CPPFLAGS += -D_GNU_SOURCE -I./include -I$(BUILDDIR)/include -I./ubi-utils/include $(ZLIBCPPFLAGS) $(LZOCPPFLAGS)
+CPPFLAGS += -D_GNU_SOURCE -I./include -I$(BUILDDIR)/include -I./ubi-utils/include $(ZLIBCPPFLAGS) $(LZOCPPFLAGS) $(UUIDCPPFLAGS)
 
 ifeq ($(WITHOUT_XATTR), 1)
   CPPFLAGS += -DWITHOUT_XATTR
@@ -104,6 +104,7 @@ $(call _mkdep,lib/,libmtd.a)
 #
 obj-mkfs.ubifs = crc16.o lpt.o compr.o devtable.o \
        hashtable/hashtable.o hashtable/hashtable_itr.o
+LDFLAGS_mkfs.ubifs = $(ZLIBLDFLAGS) $(LZOLDFLAGS) $(UUIDLDFLAGS)
 LDLIBS_mkfs.ubifs = -lz -llzo2 -lm -luuid
 $(call mkdep,mkfs.ubifs/,mkfs.ubifs,,ubi-utils/libubi.a)