Skip to content

Commit 50556d5

Browse files
committed
Add /var/tmp/fastfreeze/run to LD_LIBRARY_PATH for the application
1 parent ffc4fd0 commit 50556d5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/fastfreeze

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ set -e
44
FF_DIR=$(dirname -- "$(readlink -f -- "$0")")
55

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

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

0 commit comments

Comments
 (0)