This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Pass FLAGS_FOR_TARGET to subdirectories (was: Re: GCC_FOR_TARGET x linker scripts)

On Nov  6, 2002, Daniel Jacobowitz <> wrote:

> On Wed, Nov 06, 2002 at 04:15:52PM -0200, Alexandre Oliva wrote:
>> On Oct 28, 2002, Daniel Jacobowitz <> wrote:
>> > Note that GCC_FOR_TARGET in gcc/ includes "-isystem
>> > $(build_tooldir)/sys-include".
>> I suppose this is no longer necessary, now that we warn or bail out when we
>> can't find ${SYSTEM_HEADER_DIR}.  We don't bail out when
>> SYSTEM_HEADER_DIR is ${gcc_tooldir}/sys-include, but we warn about the
>> problem, and `make install-gcc-tooldir' is the fix, so I think we can
>> lose this -isystem now.
>> > Here's what I came up with; what do you think?
>> I still find this a bit too magic.  Passing it in the environment
>> sounds ``more right´´ to me.

> I'm worried that this won't work, though.  Aren't there environment
> size limits to consider?

Perhaps.  It's not like it grows that big, anyway, and make will
export it to sub-makes anyway, so it's not like we're saving a lot

> (And I find passing arguments to sub-configures in the environment
> mighty magical, too, since it doesn't show up in config.status that you
> did so!)

Good point, I hadn't thought of that.  I'd go with picking it from
../Makefile and, failing that, from the environment, then.

Or perhaps, after we upgrade gcc to autoconf 2.5x, we can take
advantage of the preservation of environment variables in the
configure command line and cache files.

> In any case, I'm holding off on this patch until we autoconf so that I
> won't just have to redo it.

Sounds good to me.

Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                 aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist                Professional serial bug killer

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]