This is the mail archive of the gcc-patches@gcc.gnu.org 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]

Re: PATCH to fix include paths


On Wed, Sep 26, 2001 at 10:58:43PM -0700, Per Bothner wrote:
> Zack Weinberg <zack@codesourcery.com> writes:
> 
> > Here's a question: Do we _ever_ want to override the compiled-in paths
> > from the makefile, or do we always want to use the ones set at
> > configure time?  If it's the latter, why don't we zap this entire mess
> > and move the #defines to auto-host.h?  That would also obviate the
> > need for recompilations when the Makefile changes (normally in an
> > unrelated manner).
> 
> Ok, how about this patch then?
...
>        * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
>        * Makefile.in (includedir):  Rename to local_includedir.
>        (includedir):  Define as $(prefix)/include.
>         * config.in (PREFIX_INCLUDE_DIR):  New variable.
>         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.

When I said "zap this entire mess" I meant move everything currently
being done in PREPROCESSOR_DEFINES to config.h.

However, go ahead and check this patch in, and I'll make that change
separately.

zw


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