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

Commit

Permalink
build/pkgs/r/spkg-install.in: Set rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Jul 23, 2020
1 parent 11448a6 commit 9d667e8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build/pkgs/r/spkg-install.in
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ fi
# See patches/R.sh.patch
export SAGE_BUILDING_R=yes

R_HOME="$SAGE_LOCAL"/lib/R
# Set LDFLAGS as it is done in sage-env for $SAGE_LOCAL/lib
LDFLAGS="-L$R_HOME/lib -Wl,-rpath,$R_HOME/lib $LDFLAGS"
if [ "$UNAME" = "Linux" ]; then
LDFLAGS="-Wl,-rpath-link,$R_HOME/lib $LDFLAGS"
fi
export LDFLAGS

config() {
sdh_configure --enable-R-shlib --with-recommended-packages \
--with-readline=yes --with-x=$XSUPPORT \
Expand Down

0 comments on commit 9d667e8

Please sign in to comment.