掌機 - Pandora(Rebirth) - SuperZaxxon - Build GCC 6.5.0



參考資訊:
https://gist.github.com/jeetsukumaran/5224956

$ cd
$ wget https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz
$ tar xvf gmp-6.3.0.tar.xz
$ cd gmp-6.3.0
$ ./configure --prefix=/opt/gmp
$ make
$ sudo make install

$ cd
$ wget https://ftp.gnu.org/gnu/mpfr/mpfr-4.2.2.tar.gz
$ tar xvf mpfr-4.2.2.tar.gz
$ cd mpfr-4.2.2
$ ./configure --with-gmp=/opt/gmp --prefix=/opt/mpfr
$ make
$ sudo make install

$ cd
$ wget https://ftp.gnu.org/gnu/mpc/mpc-1.4.1.tar.xz
$ tar xvf mpc-1.4.1.tar.xz
$ cd mpc-1.4.1
$ ./configure --with-gmp=/opt/gmp --with-mpfr=/opt/mpfr --prefix=/opt/mpc
$ make
$ sudo make install

$ cd
$ wget https://ftp.gnu.org/gnu/gcc/gcc-6.5.0/gcc-6.5.0.tar.gz
$ tar xvf gcc-6.5.0.tar.gz
$ cd gcc-6.5.0
$ ./configure \
    --with-gnu-as \
    --with-gnu-ld \
    --disable-libmudflap \
    --enable-lto \
    --enable-objc-gc \
    --enable-shared \
    --disable-static \
    --without-included-gettext \
    --enable-nls \
    --disable-sjlj-exceptions \
    --enable-gnu-unique-object \
    --enable-linker-build-id \
    --disable-libstdcxx-pch \
    --enable-c99 \
    --enable-clocale=gnu \
    --enable-libstdcxx-debug \
    --enable-long-long \
    --with-cloog=no \
    --with-ppl=no \
    --with-isl=no \
    --disable-multilib \
    --with-float=softfp \
    --with-mode=thumb \
    --with-tune=cortex-a9 \
    --with-arch=armv7-a \
    --with-fpu=vfpv3-d16 \
    --enable-threads=posix \
    --enable-multiarch \
    --enable-libstdcxx-time=yes \
    --enable-checking=release \
    --disable-bootstrap \
    --enable-languages=c,c++,fortran,lto \
    --with-gmp=/opt/gmp \
    --with-mpfr=/opt/mpfr \
    --with-mpc=/opt/mpc \
    --prefix=/opt/gcc-6.5.0

$ make
$ sudo make install