mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:07:34 +00:00
Ports/gcc: Update to version 12.1.0
This commit is contained in:
parent
6cf260c7af
commit
0aee2abda7
5 changed files with 7 additions and 6529 deletions
|
@ -1,9 +1,9 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port=gcc
|
||||
version=11.2.0
|
||||
version=12.1.0
|
||||
useconfigure=true
|
||||
configopts=("--target=${SERENITY_ARCH}-pc-serenity" "--with-sysroot=/" "--with-build-sysroot=${SERENITY_INSTALL_ROOT}" "--with-newlib" "--enable-languages=c,c++" "--disable-lto" "--disable-nls" "--enable-shared" "--enable-default-pie" "--enable-host-shared" "--enable-threads=posix" "--enable-initfini-array" "--with-linker-hash-style=gnu")
|
||||
files="https://ftpmirror.gnu.org/gnu/gcc/gcc-${version}/gcc-${version}.tar.xz gcc-${version}.tar.xz d08edc536b54c372a1010ff6619dd274c0f1603aa49212ba20f7aa2cda36fa8b"
|
||||
configopts=("--target=${SERENITY_ARCH}-pc-serenity" "--with-sysroot=/" "--with-build-sysroot=${SERENITY_INSTALL_ROOT}" "--enable-languages=c,c++" "--disable-lto" "--disable-nls" "--enable-shared" "--enable-default-pie" "--enable-host-shared" "--enable-threads=posix" "--enable-initfini-array" "--with-linker-hash-style=gnu")
|
||||
files="https://ftpmirror.gnu.org/gnu/gcc/gcc-${version}/gcc-${version}.tar.xz gcc-${version}.tar.xz 62fd634889f31c02b64af2c468f064b47ad1ca78411c45abe6ac4b5f8dd19c7b"
|
||||
makeopts=("all-gcc" "all-target-libgcc" "all-target-libstdc++-v3" "-j$(nproc)")
|
||||
installopts=("DESTDIR=${SERENITY_INSTALL_ROOT}" "install-gcc" "install-target-libgcc" "install-target-libstdc++-v3")
|
||||
depends=("binutils" "gmp" "mpfr" "mpc" "isl")
|
||||
|
@ -12,10 +12,11 @@ auth_type="sha256"
|
|||
|
||||
build() {
|
||||
run make "${makeopts[@]}"
|
||||
run find "./host-${SERENITY_ARCH}-pc-serenity/gcc/" -maxdepth 1 -type f -executable -exec strip --strip-debug {} \; || echo
|
||||
run find "./host-${SERENITY_ARCH}-pc-serenity/gcc/" -maxdepth 1 -type f -executable -exec $STRIP --strip-debug {} \; || echo
|
||||
}
|
||||
|
||||
install() {
|
||||
run make "${installopts[@]}"
|
||||
run ln -sf gcc "${SERENITY_INSTALL_ROOT}/usr/local/bin/cc"
|
||||
run ln -sf g++ "${SERENITY_INSTALL_ROOT}/usr/local/bin/c++"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue