[Buildroot] [PATCH] Set CFLAGS = $(TARGET_CFLAGS) for many packages
Ulf Samuelsson
ulfs at dof.se
Thu Jan 25 00:02:49 UTC 2007
Bernhard Fischer wrote:
> On Wed, Jan 24, 2007 at 12:53:53AM +0100, Ulf Samuelsson wrote:
>> 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 don't understand what you mean here. Please elaborate
>>
Some packages require kernel headers.
If you build from scratch, something sets CFLAGS to a good value.
If you come back the next day, reconfigure your system,
to include a new package, and recompile, many packages
will bomb out because they do not find the "asm-generic.h"
By adding this CFLAGS patch you can compile those packages.
Many packages have this already, many don't.
Can you explain when you have it and when you don't?
>> I believe that TARGET_CFLAGS needs to include the Linux Include
>> Directory or you will get compolie time errors.
>
> I don't have the linux include in my TARGET_CFLAGS AFAIK and do not
> get compile errors. What kernel-headers are you using? What errors
> are you seeing with what package?
Best Regards,
Ulf Samuelsson
ulf at atmel.com
GSM: +46 (706) 22 44 57
Tel: +46 (8) 441 54 22
Fax: +46 (8) 441 54 29
Mail: Box 2033 174 02 Sundbyberg
Visit: Kavallerivägen 24
174 58 Sundbyberg'
Sweden
More information about the buildroot
mailing list