From 5756422cbf9c0537284a80916ab14592dcf0673c Mon Sep 17 00:00:00 2001 From: Volker Braun Date: Fri, 17 May 2024 21:46:43 +0200 Subject: [PATCH] Workaround for passing givaro library to linker on OSX https://github.com/sagemath/sage/issues/38002 https://github.com/linbox-team/fflas-ffpack/issues/391 --- build/pkgs/fflas_ffpack/spkg-install.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/pkgs/fflas_ffpack/spkg-install.in b/build/pkgs/fflas_ffpack/spkg-install.in index b9dd851875f..6fa14426ca1 100644 --- a/build/pkgs/fflas_ffpack/spkg-install.in +++ b/build/pkgs/fflas_ffpack/spkg-install.in @@ -29,6 +29,13 @@ if [ -z "$CONFIG_SHELL" ]; then export CONFIG_SHELL=`command -v bash` fi +# Dirty workaround to link on OSX +# https://github.com/linbox-team/fflas-ffpack/issues/391 +# https://github.com/sagemath/sage/issues/38002 +if [ "$UNAME" = Darwin ]; then + LDFLAGS="-lgivaro $LDFLAGS" +fi + # We disable openmp because of build failures, see # https://github.com/sagemath/sage/issues/17635#comment:67 sdh_configure --with-default="$SAGE_LOCAL" --with-blas-libs="$LINBOX_BLAS" \