GCC: where to compile it
Kurt Wall
kwall
Mon May 17 11:44:51 PDT 2004
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
% install file are reproduced here, and I would appreciate an English
% translation with an example.
% ============Instructions===================
% Like most GNU software, GCC must be configured before it can be built.
% This document describes the recommended configuration procedure for
% both native and cross targets.
%
% We use _srcdir_ to refer to the toplevel source directory for GCC; we
% use _objdir_ to refer to the toplevel build/object directory.
"_srcdir_" = the directory created when you unpacked the tarball
"_objdir_" = a new directory you create in which to configure and
build the sources in "_srcdir_"
[...]
% To configure GCC:
%
% % mkdir _objdir_
% % cd _objdir_
% % _srcdir_/configure _[target]_ _[options]_
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
Kurt
--
In a medium in which a News Piece takes a minute and an "In-Depth"
Piece takes two minutes, the Simple will drive out the Complex.
-- Frank Mankiewicz
More information about the Linux-users
mailing list