summaryrefslogtreecommitdiff
path: root/Ports/gcc/package.sh
diff options
context:
space:
mode:
authorGunnar Beutner <gunnar@beutner.name>2021-04-17 01:42:22 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-18 10:55:25 +0200
commit407b066ba49ecabb493a44d3acf3eb67a0d6bde2 (patch)
tree51aea5f04123e7438740fe8bfaaf8b19eb8df49e /Ports/gcc/package.sh
parent6cb28ecee8399b0d79ccfa8b9d58fa04e88846d3 (diff)
downloadserenity-407b066ba49ecabb493a44d3acf3eb67a0d6bde2.zip
Ports: Update the gcc port with the patches from the toolchain
Diffstat (limited to 'Ports/gcc/package.sh')
-rwxr-xr-xPorts/gcc/package.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/Ports/gcc/package.sh b/Ports/gcc/package.sh
index c0ecd62bb6..1b29378689 100755
--- a/Ports/gcc/package.sh
+++ b/Ports/gcc/package.sh
@@ -16,6 +16,11 @@ post_fetch() {
run contrib/download_prerequisites
}
+pre_configure() {
+ patch_internal
+ run sed -i 's@-fno-exceptions @@' gcc/config/serenity.h
+}
+
build() {
run make $makeopts
run find "./host-${SERENITY_ARCH}-pc-serenity/gcc/" -maxdepth 1 -type f -executable -exec strip --strip-debug {} \; || echo