mirror of https://github.com/google/oss-fuzz.git
Set rpath on js binary to properly resolve included libraries on runner (#5646)
This commit is contained in:
parent
23f406128a
commit
e0b418a7ba
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue