Robert Millan wrote:
> On Thu, Oct 29, 2009 at 11:14:33AM +0100, Robert Millan wrote:
>   
>> It appears that -nostdinc also excludes GCC internal header directory (for
>> e.g. stdarg.h), which I didn't expect.
>>
>> Does someone know a clean way to resolve this?  A quick check at GCC
>> command-line options didn't reveal a way to explicitly include that
>> directory afterwards without knowing its path.
>>
>> I.e. something similar to `gcc -print-file-name=libgcc.a`
>>     
>
> Maybe with -isysroot=`pwd`/dummy instead of -nostdinc.
>
>   
Why not to create a real sysdir? For gcc grub is just another OS
environment so we can use same approach as if we were cross-compiling
for another OS
> It's an ugly kludge, but the alternatives look even worse.
>
> Does someone have a better idea?
>
>   


-- 
Regards
Vladimir 'phcoder' Serbinenko
Personal git repository: http://repo.or.cz/w/grub2/phcoder.git 



_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to