summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authoryegor <yegortryndin@gmail.com>2021-06-04 08:46:32 -0700
committerAndreas Kling <kling@serenityos.org>2021-06-05 10:56:04 +0200
commit6f0092edb84ee389d69edf32ffa8ae59b4f2bdea (patch)
tree68760953a40f2836f1b629db32d6f380e3958836 /Ports
parent2164d8aae8ad5b7339cc88f288993fef06ad89f6 (diff)
downloadserenity-6f0092edb84ee389d69edf32ffa8ae59b4f2bdea.zip
Ports: fix gcc for mac users
BSD sed differs from GNU sed with the `-i` option. This commit changes the sed line in package.sh to be portable across macOS and Linux.
Diffstat (limited to 'Ports')
-rwxr-xr-xPorts/gcc/package.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/Ports/gcc/package.sh b/Ports/gcc/package.sh
index b4ae1a4aba..1ce319112c 100755
--- a/Ports/gcc/package.sh
+++ b/Ports/gcc/package.sh
@@ -15,7 +15,8 @@ post_fetch() {
pre_configure() {
patch_internal
- run sed -i 's@-fno-exceptions @@' gcc/config/serenity.h
+ run sed -i.bak 's@-fno-exceptions @@' gcc/config/serenity.h
+ run rm -f gcc/config/serenity.h.bak
}
build() {