Skip to content

Commit 2a26ce9

Browse files
committed
Use system zlib for MacOS builds
1 parent ab90c12 commit 2a26ce9

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.github/workflows/compilation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
if: startsWith(matrix.os[0], 'macos')
3737
run: |
3838
brew update
39-
brew install texinfo bison flex gnu-sed gsl
39+
brew install texinfo bison flex gnu-sed gsl zlib
4040
4141
- name: Install in MSYS2
4242
if: matrix.os[0] == 'windows-latest'

prepare-mac-os.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fi
4848
# actual installation
4949
if [ $try_brew -eq 1 ]; then
5050
CURRENT_USER=$(stat -f '%Su' /dev/console)
51-
sudo -u $CURRENT_USER brew install gettext texinfo bison flex gnu-sed gsl gmp mpfr
51+
sudo -u $CURRENT_USER brew install gettext texinfo bison flex gnu-sed gsl gmp mpfr zlib
5252
exit
5353
fi
5454
if [ $try_port -eq 1 ]; then

scripts/001-binutils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ TARG_XTRA_OPTS=""
4040
if [ "$(uname -s)" = "Darwin" ]; then
4141
## Check if using brew
4242
if command -v brew &> /dev/null; then
43-
TARG_XTRA_OPTS="--with-gmp=$(brew --prefix gmp) --with-mpfr=$(brew --prefix mpfr)"
43+
TARG_XTRA_OPTS="--with-gmp=$(brew --prefix gmp) --with-mpfr=$(brew --prefix mpfr) --with-system-zlib"
4444
fi
4545
## Check if using MacPorts
4646
if command -v port &> /dev/null; then
47-
TARG_XTRA_OPTS="--with-gmp=$(port -q prefix gmp) --with-mpfr=$(port -q prefix mpfr)"
47+
TARG_XTRA_OPTS="--with-gmp=$(port -q prefix gmp) --with-mpfr=$(port -q prefix mpfr) --with-system-zlib"
4848
fi
4949
fi
5050

scripts/002-gcc-stage1.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ PROC_NR=$(getconf _NPROCESSORS_ONLN)
4242
if [ "$(uname -s)" = "Darwin" ]; then
4343
## Check if using brew
4444
if command -v brew &> /dev/null; then
45-
TARG_XTRA_OPTS="--with-gmp=$(brew --prefix gmp) --with-mpfr=$(brew --prefix mpfr) --with-mpc=$(brew --prefix libmpc)"
45+
TARG_XTRA_OPTS="--with-gmp=$(brew --prefix gmp) --with-mpfr=$(brew --prefix mpfr) --with-mpc=$(brew --prefix libmpc) --with-system-zlib"
4646
fi
4747
## Check if using MacPorts
4848
if command -v port &> /dev/null; then
49-
TARG_XTRA_OPTS="--with-gmp=$(port -q prefix gmp) --with-mpfr=$(port -q prefix mpfr) --with-mpc=$(port -q prefix libmpc)"
49+
TARG_XTRA_OPTS="--with-gmp=$(port -q prefix gmp) --with-mpfr=$(port -q prefix mpfr) --with-mpc=$(port -q prefix libmpc) --with-system-zlib"
5050
fi
5151
fi
5252

scripts/005-gcc-stage2.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ PROC_NR=$(getconf _NPROCESSORS_ONLN)
4242
if [ "$(uname -s)" = "Darwin" ]; then
4343
## Check if using brew
4444
if command -v brew &> /dev/null; then
45-
TARG_XTRA_OPTS="--with-gmp=$(brew --prefix gmp) --with-mpfr=$(brew --prefix mpfr) --with-mpc=$(brew --prefix libmpc)"
45+
TARG_XTRA_OPTS="--with-gmp=$(brew --prefix gmp) --with-mpfr=$(brew --prefix mpfr) --with-mpc=$(brew --prefix libmpc) --with-system-zlib"
4646
fi
4747
## Check if using MacPorts
4848
if command -v port &> /dev/null; then
49-
TARG_XTRA_OPTS="--with-gmp=$(port -q prefix gmp) --with-mpfr=$(port -q prefix mpfr) --with-mpc=$(port -q prefix libmpc)"
49+
TARG_XTRA_OPTS="--with-gmp=$(port -q prefix gmp) --with-mpfr=$(port -q prefix mpfr) --with-mpc=$(port -q prefix libmpc) --with-system-zlib"
5050
fi
5151
fi
5252

0 commit comments

Comments
 (0)