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.
1 parent efefcf4 commit c35ac85Copy full SHA for c35ac85
scripts/001-binutils.sh
@@ -42,10 +42,11 @@ if [ "$(uname -s)" = "Darwin" ]; then
42
## Check if using brew
43
if command -v brew &> /dev/null; then
44
TARG_XTRA_OPTS="--with-gmp=$(brew --prefix gmp) --with-mpfr=$(brew --prefix mpfr)"
45
- fi
+ elif command -v port &> /dev/null; then
46
## Check if using MacPorts
47
- if command -v port &> /dev/null; then
48
- TARG_XTRA_OPTS="--with-gmp=$(port -q prefix gmp) --with-mpfr=$(port -q prefix mpfr)"
+ MACPORT_BASE=$(dirname `port -q contents gmp|grep gmp.h`|sed s#/include##g)
+ echo Macport base is $MACPORT_BASE
49
+ TARG_XTRA_OPTS="--with-gmp=$MACPORT_BASE --with-mpfr=$MACPORT_BASE"
50
fi
51
52
0 commit comments