Skip to content

Commit 9869618

Browse files
authored
Merge pull request #63 from andressbarajas/macos_sed_fix
Add GNU sed fallback for macOS to support GCC build
2 parents 3ecd0fb + 1ca4fe0 commit 9869618

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/006-gcc-stage2.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ OSVER=$(uname)
4242
if [ "$(uname -s)" = "Darwin" ]; then
4343
## Check if using brew
4444
if command -v brew &> /dev/null; then
45+
export PATH="$(brew --prefix gnu-sed)/libexec/gnubin:$PATH"
4546
TARG_XTRA_OPTS="--with-system-zlib --with-gmp=$(brew --prefix gmp) --with-mpfr=$(brew --prefix mpfr) --with-mpc=$(brew --prefix libmpc)"
4647
elif command -v port &> /dev/null; then
4748
## Check if using MacPorts
4849
MACPORT_BASE=$(dirname `port -q contents gmp|grep gmp.h`|sed s#/include##g)
4950
echo Macport base is $MACPORT_BASE
51+
alias sed='gsed'
5052
TARG_XTRA_OPTS="--with-system-zlib --with-gmp=$MACPORT_BASE --with-mpfr=$MACPORT_BASE --with-mpc=$MACPORT_BASE"
5153
fi
5254
fi

0 commit comments

Comments
 (0)