Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Set CFLAGS = $(TARGET_CFLAGS) for many packages
@ 2007-01-23 23:53 Ulf Samuelsson
  2007-01-24 23:23 ` Bernhard Fischer
  0 siblings, 1 reply; 5+ messages in thread
From: Ulf Samuelsson @ 2007-01-23 23:53 UTC (permalink / raw)
  To: buildroot

If you make Buildroot from scratch, CFLAGS gets set during the build,
but if you add packages later, then CFLAGS should be set in the
makefile fragment of the new package.

I believe that TARGET_CFLAGS needs to include the Linux Include
Directory or you will get compolie time errors.
Don't have a clean patch for that yet, but this is what I do:

TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING)

should be changed to

TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING) \
	-I$(TOOL_BUILD_DIR)/linux/include


Best Regards
Ulf Samuelsson

-------------- next part --------------
A non-text attachment was scrubbed...
Name: target_flags.patch
Type: text/x-patch
Size: 19474 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070124/0deebaf0/attachment-0001.bin 

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

end of thread, other threads:[~2007-01-26 18:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-23 23:53 [Buildroot] [PATCH] Set CFLAGS = $(TARGET_CFLAGS) for many packages Ulf Samuelsson
2007-01-24 23:23 ` Bernhard Fischer
2007-01-25  0:02   ` Ulf Samuelsson
2007-01-25  9:18     ` Bernhard Fischer
2007-01-26 18:37       ` Ulf Samuelsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox