Skip to content

Commit 97361d8

Browse files
committed
try autoreconf mpfr to build with macos
1 parent 6d81beb commit 97361d8

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

.github/workflows/ccpp_mac.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,16 @@ jobs:
1313

1414
runs-on: macos-12
1515

16+
1617
steps:
1718
- uses: actions/checkout@v3
1819
- name: check autoconf version
19-
run: autoconf --version
20-
- name: update automake for mpfr
2120
run: |
22-
curl -O -L http://ftpmirror.gnu.org/automake/automake-1.16.5.tar.gz
23-
tar -xzf automake-1.16.5.tar.gz
24-
cd automake-*
25-
./configure
26-
make
27-
sudo make install
21+
autoconf --version
2822
automake --version
23+
glibtool --version
24+
which autoreconf
25+
ls /usr/local/bin
2926
- name: build deps & slicer
3027
run: ./BuildMacOS.sh -dsi
3128
- name: Upload artifact

.github/workflows/ccpp_mac_arm.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,16 @@ jobs:
1313

1414
runs-on: macos-14
1515

16+
1617
steps:
1718
- uses: actions/checkout@v3
1819
- name: install autoconf
19-
run: brew install autoconf
20+
run: brew install autoconf automake libtool
2021
- name: check autoconf version
21-
run: autoconf --version
22-
- name: update automake for mpfr
2322
run: |
24-
curl -O -L http://ftpmirror.gnu.org/automake/automake-1.16.5.tar.gz
25-
tar -xzf automake-1.16.5.tar.gz
26-
cd automake-*
27-
./configure
28-
make
29-
sudo make install
23+
autoconf --version
3024
automake --version
25+
glibtool --version
3126
- name: build deps & slicer
3227
run: ./BuildMacOS.sh -adsi
3328
- name: Upload artifact

deps/MPFR/MPFR.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ else ()
3030
URL_HASH SHA256=cf4f4b2d80abb79e820e78c8077b6725bbbb4e8f41896783c899087be0e94068
3131
DOWNLOAD_DIR ${DEP_DOWNLOAD_DIR}/MPFR
3232
BUILD_IN_SOURCE ON
33-
CONFIGURE_COMMAND env "CFLAGS=${_gmp_ccflags}" "CXXFLAGS=${_gmp_ccflags}" ./configure ${_cross_compile_arg} --prefix=${DESTDIR}/usr/local --enable-shared=no --enable-static=yes --with-gmp=${DESTDIR}/usr/local ${_gmp_build_tgt}
33+
CONFIGURE_COMMAND env "CFLAGS=${_gmp_ccflags}" "CXXFLAGS=${_gmp_ccflags}" autoreconf -fi ${_cross_compile_arg} --prefix=${DESTDIR}/usr/local --enable-shared=no --enable-static=yes --with-gmp=${DESTDIR}/usr/local ${_gmp_build_tgt} COMMAND env "CFLAGS=${_gmp_ccflags}" "CXXFLAGS=${_gmp_ccflags}" ./configure ${_cross_compile_arg} --prefix=${DESTDIR}/usr/local --enable-shared=no --enable-static=yes --with-gmp=${DESTDIR}/usr/local ${_gmp_build_tgt}
3434
BUILD_COMMAND make -j
3535
INSTALL_COMMAND make install
3636
${_cmake_args_osx_arch}

0 commit comments

Comments
 (0)