From c22131f74897c05f625c91008973df8be124ebed Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Tue, 26 Sep 2023 18:19:08 -0700 Subject: [PATCH] build/pkgs/ecm/spkg-install.in: Work around build failure with Xcode 15, https://github.com/sagemath/sage/issues/36342 --- build/pkgs/ecm/spkg-install.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/pkgs/ecm/spkg-install.in b/build/pkgs/ecm/spkg-install.in index b60230f368a..ce58949c8ee 100644 --- a/build/pkgs/ecm/spkg-install.in +++ b/build/pkgs/ecm/spkg-install.in @@ -189,6 +189,12 @@ export CFLAGS # Not exported by 'sage-env'. LDFLAGS are exported above if # necessary. We currently don't set (or modify) any other # environment variables, so don't have to export them here. +# Workaround for build failure with Xcode 15, https://github.com/sagemath/sage/issues/36342 +case "$UNAME" in + Darwin*) + export gmp_cv_asm_underscore=yes + ;; +esac ############################################################################### # Now configure ECM: