瀏覽代碼

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.

yegor 4 年之前
父節點
當前提交
6f0092edb8
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Ports/gcc/package.sh

+ 2 - 1
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() {