linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix crosscompilation for mkfs.ubifs
@ 2009-10-23 16:05 Matthias Fuchs
  2009-10-24 17:16 ` Artem Bityutskiy
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Fuchs @ 2009-10-23 16:05 UTC (permalink / raw)
  To: linux-mtd

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>
---
 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
 
-- 
1.6.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix crosscompilation for mkfs.ubifs
  2009-10-23 16:05 [PATCH] Fix crosscompilation for mkfs.ubifs Matthias Fuchs
@ 2009-10-24 17:16 ` Artem Bityutskiy
  0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2009-10-24 17:16 UTC (permalink / raw)
  To: Matthias Fuchs; +Cc: linux-mtd

On Fri, 2009-10-23 at 18:05 +0200, Matthias Fuchs wrote:
> 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>

Pushed, thanks!

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-24 17:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-23 16:05 [PATCH] Fix crosscompilation for mkfs.ubifs Matthias Fuchs
2009-10-24 17:16 ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).