2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-22 07:10:16 -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 #!/bin/sh -e
cd gcc
patch -p1 < 0002-posix_memalign.patch patch -p1 < 0002-posix_memalign.patch
patch -p1 < 0003-gcc-poison-system-directories.patch patch -p1 < 0003-gcc-poison-system-directories.patch
patch -p1 < 0008-s390x-muslldso.patch patch -p1 < 0008-s390x-muslldso.patch
@ -21,31 +23,28 @@ cd ../gcc-build || return 1
export libat_cv_have_ifunc=no export libat_cv_have_ifunc=no
"$OLDPWD/configure" \ ../gcc/configure \
--prefix=/usr \ --prefix=/usr \
--host=x86_64-linux-musl \ --disable-multilib \
--build=x86_64-linux-musl \ --disable-symvers \
--target=x86_64-linux-musl \ --disable-libmpx \
--disable-multilib \ --disable-libmudflap \
--disable-symvers \ --disable-libsanitizer \
--disable-libmpx \ --disable-nls \
--disable-libmudflap \ --disable-werror \
--disable-libsanitizer \ --disable-fixed-point \
--disable-nls \ --disable-libstdcxx-pch \
--disable-werror \ --enable-checking=release \
--disable-fixed-point \ --mandir=/usr/share/man \
--disable-libstdcxx-pch \ --infodir=/usr/share/info \
--enable-checking=release \ --with-system-zlib \
--mandir=/usr/share/man \ --enable-__cxa_atexit \
--infodir=/usr/share/info \ --enable-default-pie \
--with-system-zlib \ --enable-default-ssp \
--enable-__cxa_atexit \ --enable-shared \
--enable-default-pie \ --enable-threads \
--enable-default-ssp \ --enable-tls \
--enable-shared \ --enable-languages=c,c++
--enable-threads \
--enable-tls \
--enable-languages=c,c++
make BOOT_CFLAGS='-O' make BOOT_CFLAGS='-O'
make DESTDIR="$1" install 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 https://gcc.gnu.org/pub/gcc/releases/gcc-8.3.0/gcc-8.3.0.tar.xz gcc/
patches/0002-posix_memalign.patch patches/0002-posix_memalign.patch gcc/
patches/0003-gcc-poison-system-directories.patch patches/0003-gcc-poison-system-directories.patch gcc/
patches/0008-s390x-muslldso.patch patches/0008-s390x-muslldso.patch gcc/
patches/0010-ldbl128-config.patch patches/0010-ldbl128-config.patch gcc/
patches/0012-static-pie.patch patches/0012-static-pie.patch gcc/
patches/0016-invalid_tls_model.patch patches/0016-invalid_tls_model.patch gcc/
patches/005_all_default-as-needed.patch patches/005_all_default-as-needed.patch gcc/
patches/020_all_msgfmt-libstdc++-link.patch patches/020_all_msgfmt-libstdc++-link.patch gcc/
patches/050_all_libiberty-asprintf.patch patches/050_all_libiberty-asprintf.patch gcc/
patches/051_all_libiberty-pic.patch patches/051_all_libiberty-pic.patch gcc/
patches/203-libgcc_s.patch patches/203-libgcc_s.patch gcc/
patches/320-libffi-gnulinux.patch patches/320-libffi-gnulinux.patch gcc/
patches/libgcc-always-build-gcceh.a.patch patches/libgcc-always-build-gcceh.a.patch gcc/
patches/libgnarl-musl.patch patches/libgnarl-musl.patch gcc/