Skip to content

Commit

Permalink
Add /var/tmp/fastfreeze/run to LD_LIBRARY_PATH for the application
Browse files Browse the repository at this point in the history
  • Loading branch information
nviennot committed Mar 18, 2021
1 parent ffc4fd0 commit 50556d5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/fastfreeze
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ set -e
FF_DIR=$(dirname -- "$(readlink -f -- "$0")")

# Pass the original PATH and LD_LIBRARY_PATH down to the application, unless
# already set
# already set.
# Note that we add /var/tmp/fastfreeze/run to the application's LD_LIBRARY_PATH
# because it contains the real ld-linux-x86-64.so.2 which is important to avoid
# a linker issue when compiling a program with gcc running under fastfreeze.
export FF_APP_PATH=${FF_APP_PATH=$PATH}
export FF_APP_LD_LIBRARY_PATH=${FF_APP_LD_LIBRARY_PATH=$LD_LIBRARY_PATH}
export FF_APP_LD_LIBRARY_PATH=${FF_APP_LD_LIBRARY_PATH=/var/tmp/fastfreeze/run:$LD_LIBRARY_PATH}

# Override the PATH and LD_LIBRARY_PATH that fastfreeze should use
export LD_LIBRARY_PATH=$FF_DIR/lib:$LD_LIBRARY_PATH
Expand Down

0 comments on commit 50556d5

Please sign in to comment.