GCC: where to compile it
Kurt Wall
kwall
Mon May 17 11:44:51 PDT 2004
Feigning erudition, Bill Campbell wrote:
% On Wed, Feb 26, 2003 at 08:13:06PM -0500, Kurt Wall wrote:
% >Feigning erudition, Joel Hammer wrote:
% >% I have downloaded the sources for gcc-2.95.3
% >%
% >% I want to compile this thing, and it seems to config OK and make ok.
% >% I am totally confused on where this should go. The instructions from the
% ...
% >For example:
% >
% >$ gzip -cd gcc-2.95.3.tar.gz | tar -xf -
% >$ mkdir builddir
% >$ cd builddir
% >$ ../gcc-2.95.3/configure --prefix=/usr/local
% >$ make bootstrap
% >$ su
% >Password:
% ># make install
%
% I think there is an option when compiling to do it in a private directory
% so that it doesn't conflict with the system's installed compilers. You can
% break a lot of things on a LInux system by replacing gcc (notably most perl
% modules are very dependent on the compiler, libraries, etc.).
Which is why --prefix=/usr/local is there - most system compilers
go into /usr, scattering assorted detritus thereunder. The default
configuration shown here (that is, --prefix=/usr/local) doesn't
stomp on the system compiler.
I've built GCC more times the last year than I care to count, and I have
yet to blow up my system compiler.
% There's been some discussion of this on the openpkg developers list in the
% last few days started when somebody asked why their perl RPMS are dependent
% on gcc.
Kurt
--
... at least I thought I was dancing, 'til somebody stepped on my hand.
-- J. B. White
More information about the Linux-users
mailing list