mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-14 02:10:36 +00:00
07918b79b7
This is a mostly straight-forward rebase of our patches on top of 13.1.0. The spec files needed a change, as GCC no longer supports STABS debug information, but we were building GCC with support for it. Highlights of this release include static `operator()`, The Equality Operator You Are Looking For and extended `constexpr` support.
22 lines
1.2 KiB
Bash
Executable file
22 lines
1.2 KiB
Bash
Executable file
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port=gcc
|
|
version=13.1.0
|
|
useconfigure=true
|
|
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 61d684f0aa5e76ac6585ad8898a2427aade8979ed5e7f85492286c4dfc13ee86"
|
|
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")
|
|
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
|
|
}
|
|
|
|
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++"
|
|
}
|