linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] e2fsprogs: use ALL_CFLAGS to build gen_crc32ctable
@ 2011-10-03 16:14 Eric Sandeen
  2011-10-04  3:02 ` Ted Ts'o
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Sandeen @ 2011-10-03 16:14 UTC (permalink / raw)
  To: ext4 development

With just BUILD_CFLAGS this we don't get the right include
paths (i.e. within the tree) to build the gen_crc32ctable binary.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---

I think that the rule could probably be removed altogether, and
gen_crc32ctable.o would be built from gen_crc32ctable.c, and
the normal dependencies & rules would build gen_crc32ctable.
But this seems like the most obvious change.

diff --git a/lib/ext2fs/Makefile.in b/lib/ext2fs/Makefile.in
index 3de9f87..07a0db18 100644
--- a/lib/ext2fs/Makefile.in
+++ b/lib/ext2fs/Makefile.in
@@ -413,7 +413,7 @@ $(OBJS): subdirs
 
 gen_crc32ctable: $(srcdir)/gen_crc32ctable.c
 	$(E) "	CC $@"
-	$(Q) $(BUILD_CC) $(BUILD_CFLAGS) -o gen_crc32ctable \
+	$(Q) $(BUILD_CC) $(ALL_CFLAGS) -o gen_crc32ctable \
 		$(srcdir)/gen_crc32ctable.c
 
 crc32c_table.h: gen_crc32ctable


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

end of thread, other threads:[~2011-10-10 18:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-03 16:14 [PATCH] e2fsprogs: use ALL_CFLAGS to build gen_crc32ctable Eric Sandeen
2011-10-04  3:02 ` Ted Ts'o
2011-10-10 17:39   ` Eric Sandeen
2011-10-10 17:52     ` Eric Sandeen
2011-10-10 18:42       ` Eric Sandeen

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).