Set rpath on js binary to properly resolve included libraries on runner (#5646)

This commit is contained in:
Christian Holler (:decoder) 2021-04-21 16:53:07 +02:00 committed by GitHub
parent 23f406128a
commit e0b418a7ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -21,7 +21,8 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y \
libc++abi1 \
m4 \
yasm \
python
python \
patchelf
# This wrapper of cargo seems to interfere with our build system.
RUN rm -f /usr/local/bin/cargo

View File

@ -41,3 +41,6 @@ cp dist/bin/js $OUT
mkdir -p $OUT/lib
cp -L /usr/lib/x86_64-linux-gnu/libc++.so.1 $OUT/lib
cp -L /usr/lib/x86_64-linux-gnu/libc++abi.so.1 $OUT/lib
# Make sure libs are resolved properly
patchelf --set-rpath '$ORIGIN/lib' $OUT/js