Skip to content

Commit a01971b

Browse files
authored
Merge pull request #23 from andressbarajas/macos_clang_fix
Fix MacOS Clang 17+ compile issue
2 parents 09d2da5 + 84197bc commit a01971b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/001-binutils.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ TARGET_ALIAS="dvp"
3636
TARG_XTRA_OPTS=""
3737
OSVER=$(uname)
3838

39-
## If using MacOS Apple, set gmp and mpfr paths using TARG_XTRA_OPTS
39+
## If using MacOS Apple, set gmp and mpfr paths using TARG_XTRA_OPTS
4040
## (this is needed for Apple Silicon but we will do it for all MacOS systems)
4141
if [ "$(uname -s)" = "Darwin" ]; then
4242
## Check if using brew
4343
if command -v brew &> /dev/null; then
44-
TARG_XTRA_OPTS="--with-gmp=$(brew --prefix gmp) --with-mpfr=$(brew --prefix mpfr)"
44+
TARG_XTRA_OPTS="--with-system-zlib --with-gmp=$(brew --prefix gmp) --with-mpfr=$(brew --prefix mpfr)"
4545
elif command -v port &> /dev/null; then
4646
## Check if using MacPorts
4747
MACPORT_BASE=$(dirname `port -q contents gmp|grep gmp.h`|sed s#/include##g)
4848
echo Macport base is $MACPORT_BASE
49-
TARG_XTRA_OPTS="--with-gmp=$MACPORT_BASE --with-mpfr=$MACPORT_BASE"
49+
TARG_XTRA_OPTS="--with-system-zlib --with-gmp=$MACPORT_BASE --with-mpfr=$MACPORT_BASE"
5050
fi
5151
fi
5252

0 commit comments

Comments
 (0)