From 2a4e9df8c996a7bc5f412143ddee205a2f7b8341 Mon Sep 17 00:00:00 2001 From: Volker Braun Date: Sun, 26 May 2024 00:43:27 +0200 Subject: [PATCH] Still add rpath to our own libstdc++, in case we built our own toolchain --- build/pkgs/gmp/spkg-install.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/pkgs/gmp/spkg-install.in b/build/pkgs/gmp/spkg-install.in index baacc5132b1..127cb744152 100644 --- a/build/pkgs/gmp/spkg-install.in +++ b/build/pkgs/gmp/spkg-install.in @@ -101,7 +101,10 @@ fi # Pre-configure GMP to get the settings it would use if CFLAGS were empty: echo "Checking what CFLAGS GMP would use if they were empty..." -(unset CFLAGS CPPFLAGS CXXFLAGS && ./configure $GMP_CONFIGURE) &>configure-empty.log +( + unset CFLAGS CPPFLAGS CXXFLAGS && + CXXFLAGS="-Wl,-rpath -Wl,$SAGE_LOCAL/lib" ./configure $GMP_CONFIGURE +) &>configure-empty.log if [ $? -ne 0 ]; then # Output the log of the failed configure run cat configure-empty.log