Skip to content

Commit 671bde2

Browse files
Merge pull request #170 from edgarcosta/enablearch
enable-arch instead of host for flint
2 parents 2e4b0ab + af56c4d commit 671bde2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bin/build_dependencies_unix.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ else
257257
tar xf mpfr-$MPFRVER.tar.gz
258258
cd mpfr-$MPFRVER
259259
./configure --prefix=$PREFIX\
260+
--host=$HOST_ARG\
260261
--with-gmp=$PREFIX\
261262
--enable-shared=yes\
262263
--enable-static=no
@@ -281,7 +282,13 @@ curl -O -L https://github.com/flintlib/flint/releases/download/v$FLINTVER/flint-
281282
tar xf flint-$FLINTVER.tar.gz
282283
cd flint-$FLINTVER
283284
./bootstrap.sh
285+
# --host=$HOST_ARG\ # host is ignored
286+
# --enable-arch works on 3.1.3p1, not available on HEAD
284287
./configure --prefix=$PREFIX\
288+
--enable-arch=${HOST_ARG%%-*}\
289+
--disable-assembly\
290+
--disable-avx2\
291+
--disable-avx512\
285292
$FLINTARB_WITHGMP\
286293
--with-mpfr=$PREFIX\
287294
--disable-static\

0 commit comments

Comments
 (0)