Skip to content

Commit 6ee83fe

Browse files
fix
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
1 parent 15505e6 commit 6ee83fe

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

build/scripts/entrypoint-volume.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ nohup /checode/bin/machine-exec --url "127.0.0.1:${MACHINE_EXEC_PORT}" &
7979
libc=$(ldd /bin/ls | grep 'musl' | head -1 | cut -d ' ' -f1)
8080
if [ -n "$libc" ]; then
8181
echo "[INFO] Using linux-musl assembly..."
82+
export LD_LIBRARY_PATH="/checode/checode-linux-musl/ld_libs:${LD_LIBRARY_PATH:-}"
83+
echo "[INFO] LD_LIBRARY_PATH is: $LD_LIBRARY_PATH"
8284
cd /checode/checode-linux-musl || exit
8385
else
8486

@@ -87,15 +89,21 @@ else
8789

8890
case "${openssl_version}" in
8991
*"1"*)
92+
export LD_LIBRARY_PATH="/checode/checode-linux-libc/ubi8/ld_libs:${LD_LIBRARY_PATH:-}"
93+
echo "[INFO] LD_LIBRARY_PATH is: $LD_LIBRARY_PATH"
9094
echo "[INFO] Using linux-libc ubi8-based assembly..."
9195
cd /checode/checode-linux-libc/ubi8 || exit
9296
;;
9397
*"3"*)
98+
export LD_LIBRARY_PATH="/checode/checode-linux-libc/ubi9/ld_libs:${LD_LIBRARY_PATH:-}"
99+
echo "[INFO] LD_LIBRARY_PATH is: $LD_LIBRARY_PATH"
94100
echo "[INFO] Using linux-libc ubi9-based assembly..."
95101
cd /checode/checode-linux-libc/ubi9 || exit
96102
;;
97103
*)
98104
echo "[WARNING] Unsupported OpenSSL major version, linux-libc ubi9-based assembly will be used by default..."
105+
export LD_LIBRARY_PATH="/checode/checode-linux-libc/ubi9/ld_libs:${LD_LIBRARY_PATH:-}"
106+
echo "[INFO] LD_LIBRARY_PATH is: $LD_LIBRARY_PATH"
99107
cd /checode/checode-linux-libc/ubi9 || exit
100108
;;
101109
esac

0 commit comments

Comments
 (0)