Is it really possible to install gcc using prerequisites are installed in non standard directories.
Chung-Ju Wu
jasonwucj@gmail.com
Fri May 10 15:22:00 GMT 2013
2013/5/10 Allan Kamau <kamauallan@gmail.com>:
> I have been struggling for two days to get gcc to compile and install
> in a specific directory without success. If there is a HOWTO for this
> please point me to it.
>
I guess Jonathan's approach is able to solve your problem.
But if you want to install those host tools in a specific directory
without shared library or environment variables involved,
try following steps with static link and see if works for you:
[gmp-4.3.2]
$ /playground/jasonwucj/gmp-4.3.2/configure \
--prefix=/playground/jasonwucj/host-tools \
--disable-shared
$ make
$ make install
[mpfr-2.4.2]
$ /playground/jasonwucj/mpfr-2.4.2/configure \
--prefix=/playground/jasonwucj/host-tools \
--with-gmp=/playground/jasonwucj/host-tools \
--disable-shared
$ make
$ make install
[mpc-0.8.1]
$ /playground/jasonwucj/mpc-0.8.1/configure \
--prefix=/playground/jasonwucj/host-tools \
--with-gmp=/playground/jasonwucj/host-tools \
--with-mpfr=/playground/jasonwucj/host-tools \
--disable-shared
$ make
$ make install
[isl-0.11.1]
$ /playground/jasonwucj/isl-0.11.1/configure \
--prefix=/playground/jasonwucj/host-tools \
--with-gmp-prefix=/playground/jasonwucj/host-tools \
--disable-shared
$ make
$ make install
[cloog-0.18.0]
$ /playground/jasonwucj/cloog-0.18.0/configure \
--prefix=/playground/jasonwucj/host-tools \
--with-gmp-prefix=/playground/jasonwucj/host-tools \
--with-isl-prefix=/playground/jasonwucj/host-tools \
--disable-shared
$ make
$ make install
[gcc-4.8.0]
$ /home/jasonwucj/WORKING/WORK-WIKI/gcc-4.6.2/configure \
--prefix=/home/jasonwucj/WORKING/WORK-WIKI/toolchain \
... \
... \
--disable-shared \
... \
--with-gmp=/playground/jasonwucj/host-tools \
--with-mpfr=/playground/jasonwucj/host-tools \
--with-mpc=/playground/jasonwucj/host-tools \
--with-isl=/playground/jasonwucj/host-tools \
--with-cloog=/playground/jasonwucj/host-tools
If all work fine, then there should be no problem
to build gcc with host tools in non standard directories
on your system.
Best regards,
jasonwucj
More information about the Gcc-help
mailing list