From 6b05141159a41f00c359f98901114683990db6b9 Mon Sep 17 00:00:00 2001 From: Duke Date: Mon, 29 Dec 2025 21:47:11 -0500 Subject: [PATCH] We also need to remove this from the generated ./configure script --- depends/patches/libgmp/gcc-15.patch | 77 ++++++++++++++++++++++++++++- 1 file changed, 76 insertions(+), 1 deletion(-) diff --git a/depends/patches/libgmp/gcc-15.patch b/depends/patches/libgmp/gcc-15.patch index 738e40d85..6b924f95e 100644 --- a/depends/patches/libgmp/gcc-15.patch +++ b/depends/patches/libgmp/gcc-15.patch @@ -27,4 +27,79 @@ index bcc6f52..53705e1 100644 GMP_PROG_CC_WORKS_PART([$1], [long long reliability test 2], [/* The following provokes an internal compiler error on powerpc-apple-darwin. Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and - +diff --git a/configure b/configure +index b9abc1b..04ba451 100755 +--- a/configure ++++ b/configure +@@ -6382,71 +6382,6 @@ fi + + + +-if test "$gmp_prog_cc_works" = yes; then +- # remove anything that might look like compiler output to our "||" expression +- rm -f conftest* a.out b.out a.exe a_out.exe +- cat >conftest.c <&5 +- gmp_compile="$cc $cflags $cppflags conftest.c >&5" +- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 +- (eval $gmp_compile) 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- cc_works_part=yes +- if test "$cross_compiling" = no; then +- if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' +- { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 +- (eval $ac_try) 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; }; then :; +- else +- cc_works_part=norun +- fi +- fi +- else +- cc_works_part=no +- fi +- if test "$cc_works_part" != yes; then +- echo "failed program was:" >&5 +- cat conftest.c >&5 +- fi +- rm -f conftest* a.out b.out a.exe a_out.exe +- case $cc_works_part in +- yes) +- +- ;; +- no) +- gmp_prog_cc_works="no, long long reliability test 1" +- ;; +- norun) +- gmp_prog_cc_works="no, long long reliability test 1, program does not run" +- ;; +- esac +-fi +- +- +- +- + if test "$gmp_prog_cc_works" = yes; then + # remove anything that might look like compiler output to our "||" expression + rm -f conftest* a.out b.out a.exe a_out.exe