Steward
分享是一種喜悅、更是一種幸福
掌機 - Pandora(Rebirth) - SuperZaxxon - Build GCC 8.3.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-8.3.0/gcc-8.3.0.tar.gz
$ tar xvf gcc-8.3.0.tar.gz
$ mkdir gcc-build
$ cd gcc-build
$ ../gcc-8.3.0/configure \
../gcc-8.3.0/configure \
--prefix=/opt/gcc-8.3.0 \
--enable-languages=c,c++ \
--disable-multilib \
--disable-bootstrap \
--enable-shared \
--enable-threads=posix \
--with-gmp=/opt/gmp \
--with-mpfr=/opt/mpfr \
--with-mpc=/opt/mpc \
--with-arch=armv7-a \
--with-tune=cortex-a9 \
--with-fpu=vfpv3-d16 \
--with-float=softfp
$ make
init.c:(.text+0x2c): undefined reference to `__libc_csu_fini'
init.c:(.text+0x34): undefined reference to `__libc_csu_init'
$ vim libgomp/configure +2581
LDFLAGS='/usr/lib/libc_nonshared.a'
$ make
$ sudo make install