[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add -nostdinc to TARGET_CFLAGS
From: |
Robert Millan |
Subject: |
Re: [PATCH] Add -nostdinc to TARGET_CFLAGS |
Date: |
Thu, 29 Oct 2009 11:36:18 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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.
It's an ugly kludge, but the alternatives look even worse.
Does someone have a better idea?
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."