2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 23:00:06 -07:00

gcc: Build outside of gcc directory.

This commit is contained in:
Dylan Araps 2019-06-17 20:46:58 +03:00
parent 922163d9e0
commit a4fb29a36c
2 changed files with 39 additions and 40 deletions

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
cd gcc
patch -p1 < 0002-posix_memalign.patch
patch -p1 < 0003-gcc-poison-system-directories.patch
patch -p1 < 0008-s390x-muslldso.patch
@ -21,31 +23,28 @@ cd ../gcc-build || return 1
export libat_cv_have_ifunc=no
"$OLDPWD/configure" \
--prefix=/usr \
--host=x86_64-linux-musl \
--build=x86_64-linux-musl \
--target=x86_64-linux-musl \
--disable-multilib \
--disable-symvers \
--disable-libmpx \
--disable-libmudflap \
--disable-libsanitizer \
--disable-nls \
--disable-werror \
--disable-fixed-point \
--disable-libstdcxx-pch \
--enable-checking=release \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-system-zlib \
--enable-__cxa_atexit \
--enable-default-pie \
--enable-default-ssp \
--enable-shared \
--enable-threads \
--enable-tls \
--enable-languages=c,c++
../gcc/configure \
--prefix=/usr \
--disable-multilib \
--disable-symvers \
--disable-libmpx \
--disable-libmudflap \
--disable-libsanitizer \
--disable-nls \
--disable-werror \
--disable-fixed-point \
--disable-libstdcxx-pch \
--enable-checking=release \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-system-zlib \
--enable-__cxa_atexit \
--enable-default-pie \
--enable-default-ssp \
--enable-shared \
--enable-threads \
--enable-tls \
--enable-languages=c,c++
make BOOT_CFLAGS='-O'
make DESTDIR="$1" install

View File

@ -1,15 +1,15 @@
https://gcc.gnu.org/pub/gcc/releases/gcc-8.3.0/gcc-8.3.0.tar.xz
patches/0002-posix_memalign.patch
patches/0003-gcc-poison-system-directories.patch
patches/0008-s390x-muslldso.patch
patches/0010-ldbl128-config.patch
patches/0012-static-pie.patch
patches/0016-invalid_tls_model.patch
patches/005_all_default-as-needed.patch
patches/020_all_msgfmt-libstdc++-link.patch
patches/050_all_libiberty-asprintf.patch
patches/051_all_libiberty-pic.patch
patches/203-libgcc_s.patch
patches/320-libffi-gnulinux.patch
patches/libgcc-always-build-gcceh.a.patch
patches/libgnarl-musl.patch
https://gcc.gnu.org/pub/gcc/releases/gcc-8.3.0/gcc-8.3.0.tar.xz gcc/
patches/0002-posix_memalign.patch gcc/
patches/0003-gcc-poison-system-directories.patch gcc/
patches/0008-s390x-muslldso.patch gcc/
patches/0010-ldbl128-config.patch gcc/
patches/0012-static-pie.patch gcc/
patches/0016-invalid_tls_model.patch gcc/
patches/005_all_default-as-needed.patch gcc/
patches/020_all_msgfmt-libstdc++-link.patch gcc/
patches/050_all_libiberty-asprintf.patch gcc/
patches/051_all_libiberty-pic.patch gcc/
patches/203-libgcc_s.patch gcc/
patches/320-libffi-gnulinux.patch gcc/
patches/libgcc-always-build-gcceh.a.patch gcc/
patches/libgnarl-musl.patch gcc/