From 489debee2819ddfae3f08ef4ca047fdc793681a1 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Mon, 23 Oct 2023 13:59:21 -0700 Subject: [PATCH] build/pkgs/scipy/spkg-install.in: Work around https://github.com/sagemath/sage/issues/36342 --- build/pkgs/scipy/spkg-install.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/pkgs/scipy/spkg-install.in b/build/pkgs/scipy/spkg-install.in index 37c4e972358..38050473b9b 100644 --- a/build/pkgs/scipy/spkg-install.in +++ b/build/pkgs/scipy/spkg-install.in @@ -1,6 +1,11 @@ # https://github.com/scipy/scipy/issues/16536 - meson breaks when CXX="g++ -std=gnu++11" export CXX=$(echo "$CXX" | sed 's/-std=[a-z0-9+]*//g') +# https://github.com/sagemath/sage/issues/36342 +if [ "$UNAME" = "Darwin" ]; then + export LDFLAGS="$LDFLAGS -Wl,-ld_classic" +fi + cd src/ # mesonpy enforces the build-system requirements, including the strict version pins of numpy