Skip to content

Commit

Permalink
Still add rpath to our own libstdc++, in case we built our own toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
vbraun committed May 25, 2024
1 parent 77323e2 commit 2a4e9df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/pkgs/gmp/spkg-install.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a4e9df

Please sign in to comment.