Re: Compiling instructions unclear gcc-4.3.0

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

 



Nick England wrote:
> the instructions on http://gcc.gnu.org/install/configure.html
> 
> say:
> 
> To configure GCC:
> 
>         % mkdir objdir
>         % cd objdir
>         % srcdir/configure [options] [target]
> 
> However, in the insctutions on building it only says to do a make.

You can't build without first configuring; there's nothing to build
until you've defined a configuration.

> If I do a make in objdir I get "make: *** No targets specified and no
> makefile found.  Stop."
> 
> If I do a make in the srcdir then I am building in the srcdir, which
> the instructions advise against.
> 
> What is the correct command to run to build GCC in a non-src dir?

% mkdir objdir
% cd objdir
% srcdir/configure [options] [target]
% make
% make install

Andrew.

[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