Skip to content

Commit 95b228a

Browse files
committed
Auto merge of #22041 - semarie:configure-compat, r=alexcrichton
the sed option `--in-place` (or `-i`) is a GNU extension, and it is not portable to BSD system (openbsd and freebsd checked). use an alternate construction in order to keep the semantic.
2 parents f174bca + 04b7976 commit 95b228a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configure

+2-1
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,8 @@ do
13791379
done
13801380

13811381
# Munge any paths that appear in config.mk back to posix-y
1382-
sed -i.bak -e 's@ \([a-zA-Z]\):[/\\]@ /\1/@g;' config.tmp
1382+
cp config.tmp config.tmp.bak
1383+
sed -e 's@ \([a-zA-Z]\):[/\\]@ /\1/@g;' <config.tmp.bak >config.tmp
13831384
rm -f config.tmp.bak
13841385

13851386
msg

0 commit comments

Comments
 (0)