Originally Posted by thomas55
how do i build it out of the source directory? ive already made a directory called gcc-build how do i tell gcc to compile in gcc build?
by following the instructions maybe??? hehe...
basically you just cd into the empty gcc-build directory and then from there you execute the configure script (by specifying the path to it) and then the make, etc...
the instructions/examples in the book a pretty straight-forward:
# This assumes you are currently in the GCC source dir.
mkdir -v ../gcc-build
../gcc-3.4.3/configure --prefix=/tools \
--libexecdir=/tools/lib --with-local-prefix=/tools \
--disable-nls --enable-shared --enable-languages=c