We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ecd0fb + 1ca4fe0 commit 9869618Copy full SHA for 9869618
scripts/006-gcc-stage2.sh
@@ -42,11 +42,13 @@ OSVER=$(uname)
42
if [ "$(uname -s)" = "Darwin" ]; then
43
## Check if using brew
44
if command -v brew &> /dev/null; then
45
+ export PATH="$(brew --prefix gnu-sed)/libexec/gnubin:$PATH"
46
TARG_XTRA_OPTS="--with-system-zlib --with-gmp=$(brew --prefix gmp) --with-mpfr=$(brew --prefix mpfr) --with-mpc=$(brew --prefix libmpc)"
47
elif command -v port &> /dev/null; then
48
## Check if using MacPorts
49
MACPORT_BASE=$(dirname `port -q contents gmp|grep gmp.h`|sed s#/include##g)
50
echo Macport base is $MACPORT_BASE
51
+ alias sed='gsed'
52
TARG_XTRA_OPTS="--with-system-zlib --with-gmp=$MACPORT_BASE --with-mpfr=$MACPORT_BASE --with-mpc=$MACPORT_BASE"
53
fi
54
0 commit comments