File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,18 @@ sdh_configure --enable-shared $PYTHON_CONFIGURE
90
90
# we need to provide paths into $SAGE_LOCAL, so that setup.py finds
91
91
# the libraries needed for the extension modules - in particular sqlite3.
92
92
# (The search code there does not know about CPATH and LIBRARY_PATH.)
93
- sdh_make LDFLAGS="-L. -L$SAGE_LOCAL/lib $LDFLAGS" CPPFLAGS="-I$SAGE_LOCAL/include $CPPFLAGS"
93
+ make_LDFLAGS="-L. -L$SAGE_LOCAL/lib $LDFLAGS"
94
+ make_CPPFLAGS="-I$SAGE_LOCAL/include $CPPFLAGS"
95
+
96
+ # Also, we need to add an rpath, like we do for SAGE_LOCAL in src/bin/sage-env.
97
+ # SAGE_INST_LOCAL is the installation hierarchy for the current package
98
+ # -- for python3, this is SAGE_VENV.
99
+ make_LDFLAGS="-Wl,-rpath,$SAGE_INST_LOCAL/lib $make_LDFLAGS"
100
+ if [ "$UNAME" = "Linux" ]; then
101
+ make_LDFLAGS="-Wl,-rpath-link,$SAGE_INST_LOCAL/lib $make_LDFLAGS"
102
+ fi
103
+
104
+ sdh_make LDFLAGS="$make_LDFLAGS" CPPFLAGS="$make_CPPFLAGS"
94
105
95
106
if [ "$UNAME" = "Darwin" ]; then
96
107
export DYLD_LIBRARY_PATH="."
You can’t perform that action at this time.
0 commit comments