Re: Gcc Configure System

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Tom Browder" <tom.browder@xxxxxxxxx> 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.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux