Skip to content

Commit

Permalink
try autoreconf mpfr to build with macos
Browse files Browse the repository at this point in the history
  • Loading branch information
supermerill committed Oct 15, 2024
1 parent 6d81beb commit 97361d8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/ccpp_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,16 @@ jobs:

runs-on: macos-12


steps:
- uses: actions/checkout@v3
- name: check autoconf version
run: autoconf --version
- name: update automake for mpfr
run: |
curl -O -L http://ftpmirror.gnu.org/automake/automake-1.16.5.tar.gz
tar -xzf automake-1.16.5.tar.gz
cd automake-*
./configure
make
sudo make install
autoconf --version
automake --version
glibtool --version
which autoreconf
ls /usr/local/bin
- name: build deps & slicer
run: ./BuildMacOS.sh -dsi
- name: Upload artifact
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/ccpp_mac_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,16 @@ jobs:

runs-on: macos-14


steps:
- uses: actions/checkout@v3
- name: install autoconf
run: brew install autoconf
run: brew install autoconf automake libtool
- name: check autoconf version
run: autoconf --version
- name: update automake for mpfr
run: |
curl -O -L http://ftpmirror.gnu.org/automake/automake-1.16.5.tar.gz
tar -xzf automake-1.16.5.tar.gz
cd automake-*
./configure
make
sudo make install
autoconf --version
automake --version
glibtool --version
- name: build deps & slicer
run: ./BuildMacOS.sh -adsi
- name: Upload artifact
Expand Down
2 changes: 1 addition & 1 deletion deps/MPFR/MPFR.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ else ()
URL_HASH SHA256=cf4f4b2d80abb79e820e78c8077b6725bbbb4e8f41896783c899087be0e94068
DOWNLOAD_DIR ${DEP_DOWNLOAD_DIR}/MPFR
BUILD_IN_SOURCE ON
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}
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}
BUILD_COMMAND make -j
INSTALL_COMMAND make install
${_cmake_args_osx_arch}
Expand Down

0 comments on commit 97361d8

Please sign in to comment.