From 6f0092edb84ee389d69edf32ffa8ae59b4f2bdea Mon Sep 17 00:00:00 2001 From: yegor Date: Fri, 4 Jun 2021 08:46:32 -0700 Subject: [PATCH] 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. --- Ports/gcc/package.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() {