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.
This commit is contained in:
commit
95b228ab95
1 changed files with 2 additions and 1 deletions
3
configure
vendored
3
configure
vendored
|
|
@ -1379,7 +1379,8 @@ do
|
|||
done
|
||||
|
||||
# Munge any paths that appear in config.mk back to posix-y
|
||||
sed -i.bak -e 's@ \([a-zA-Z]\):[/\\]@ /\1/@g;' config.tmp
|
||||
cp config.tmp config.tmp.bak
|
||||
sed -e 's@ \([a-zA-Z]\):[/\\]@ /\1/@g;' <config.tmp.bak >config.tmp
|
||||
rm -f config.tmp.bak
|
||||
|
||||
msg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue