Skip to content

Commit 99d2492

Browse files
committed
buildsystem: use sed wrapper around gsed for macOS
1 parent 4821369 commit 99d2492

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/006-gcc-stage2.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ if [ "$(uname -s)" = "Darwin" ]; then
4949
printf 'Macport base is %s\n' "$MACPORT_BASE"
5050
TARG_XTRA_OPTS="--with-system-zlib --with-libiconv_prefix=$MACPORT_BASE --with-gmp=$MACPORT_BASE --with-mpfr=$MACPORT_BASE --with-mpc=$MACPORT_BASE"
5151
fi
52+
mkdir -p "build-sed-wrapper"
53+
ln -sf "$(which gsed)" "build-sed-wrapper/sed"
54+
export PATH="$(realpath build-sed-wrapper):$PATH"
5255
fi
5356
5457
## Determine the maximum number of processes that Make can work with.

0 commit comments

Comments
 (0)