Gcc Configure System

Ian Lance Taylor iant@google.com
Thu Jan 17 16:04:00 GMT 2008

"Tom Browder" <tom.browder@gmail.com> writes:

> The recommended way to build gcc is to use a clean directory outside
> the source tree somthing like this:
>   mkdir build_dir
>   cd build_dir
> /path/to/gcc_src/configure <options>
> I want to know if there is a preferred or defined way to refer to
> "/path/to/gcc_src" in build scripts or configure inputs since
> "$(srcdir)" seems to be locally defined per Makefile.

Most Makefiles know where they are in the heirarchy, and thus do not
require any special handling--they use $(srcdir)/.. or whatever.

Where that is not the case, for libraries which are built using
multilib, we use the make variable top_srcdir.  E.g.,
libstdc++-v3/Makefile.am uses it.


More information about the Gcc-help mailing list