Installing GNU Compiler51
If you want to enable threads on Linux systems, you can use
--enable-
threads=posix
as a command line option.
3.2.2.3Building GCC
It is recommended that you use GNU
make
for building purpose. Running the
make
bootstrap
command will build the compiler, libraries and related utilities. Following is part
of the output when you start the building process.
[root@laptop objdir]# make bootstrap
make[1]: Entering directory `/gcc3/objdir/libiberty'
if [ x"" != x ] && [ ! -d pic ]; then \
mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.0.4/
libiberty/../include -W -Wall -Wtraditional -pedantic ../../
gcc-3.0.4/libiberty/argv.c -o pic/argv.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.0.4/libiberty/
../include -W -Wall -Wtraditional -pedantic ../../gcc-3.0.4/
libiberty/argv.c
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.0.4/
libiberty/../include -W -Wall -Wtraditional -pedantic ../../
gcc-3.0.4/libiberty/choose-temp.c -o pic/choose-temp.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.0.4/libiberty/
../include -W -Wall -Wtraditional -pedantic ../../gcc-3.0.4/
libiberty/choose-temp.c
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.0.4/
libiberty/../include -W -Wall -Wtraditional -pedantic ../../
gcc-3.0.4/libiberty/concat.c -o pic/concat.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.0.4/libiberty/
../include -W -Wall -Wtraditional -pedantic ../../gcc-3.0.4/
libiberty/concat.c
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.0.4/
libiberty/../include -W -Wall -Wtraditional -pedantic ../../
gcc-3.0.4/libiberty/cplus-dem.c -o pic/cplus-dem.o; \
else true; fi
Again most of the output is truncated. The building process may take a long time depend-
ing upon how powerful a computer you are using for building GCC. The process is completed in
Next Page >>
<< Previous Page
Back to the Table of Contents