Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Need rpath too when building python and override CONFIGURE_LDFLAGS only
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf authored and mkoeppe committed Oct 22, 2021
1 parent 056b8d4 commit a579725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/pkgs/python3/spkg-build.in
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ sdh_configure --enable-shared $PYTHON_CONFIGURE
# we need to provide paths into $SAGE_LOCAL, so that setup.py finds
# the libraries needed for the extension modules - in particular sqlite3.
# (The search code there does not know about CPATH and LIBRARY_PATH.)
make_LDFLAGS="-L. -L$SAGE_LOCAL/lib $LDFLAGS"
make_LDFLAGS="-L. -Wl,-rpath,. -L$SAGE_LOCAL/lib $LDFLAGS"
make_CPPFLAGS="-I$SAGE_LOCAL/include $CPPFLAGS"

# Also, we need to add an rpath, like we do for SAGE_LOCAL in src/bin/sage-env.
Expand Down

0 comments on commit a579725

Please sign in to comment.