summaryrefslogtreecommitdiff
path: root/Ports/gcc
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-01-21 19:12:25 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-23 08:28:25 +0100
commit7cc7f7ac54a76e84a5f7ada2a8e23473ca0c82ea (patch)
tree3a5ce563503b5a0c9eaa26c235830c1f4bb8465e /Ports/gcc
parenta4fbdb97c7e5d24cfff8f8daec8ee570929ad523 (diff)
downloadserenity-7cc7f7ac54a76e84a5f7ada2a8e23473ca0c82ea.zip
Ports: Clean up some package.sh scripts
- Remove superfluous function overrides and use makeopts instead - Remove superfluous installopts - Use run rather than cd'ing manually - Ensure empty line between functions
Diffstat (limited to 'Ports/gcc')
-rwxr-xr-xPorts/gcc/package.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/Ports/gcc/package.sh b/Ports/gcc/package.sh
index d54c256624..ef757db1ac 100755
--- a/Ports/gcc/package.sh
+++ b/Ports/gcc/package.sh
@@ -11,9 +11,11 @@ installopts="DESTDIR=$SERENITY_ROOT/Build/Root install-gcc install-target-libgcc
depends="binutils"
auth_type="sig"
auth_opts="--keyring ./gnu-keyring.gpg gcc-${version}.tar.xz.sig"
+
post_fetch() {
run contrib/download_prerequisites
}
+
build() {
run make $makeopts
run find ./host-i686-pc-serenity/gcc/ -maxdepth 1 -type f -executable -exec strip --strip-debug {} \; || echo