Skip to content

Commit f171f17

Browse files
Add dynamic libs to oss-fuzz image
1 parent 90ca1b2 commit f171f17

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/fuzz/oss-fuzz-build.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,13 @@ conan install . --build=missing --update -s build_type=Release -o curaengine:ena
55
cmake --preset release -DWITH_TEST_FUZZ=ON
66
cmake --build --preset release -j$(nproc)
77

8-
cp build/Release/tests/fuzz/Fuzz* $OUT
8+
cp build/Release/tests/fuzz/Fuzz* $OUT
9+
10+
mkdir -p $OUT/lib
11+
# Move all dynamic deps into output directory.
12+
find ~/.conan/data -name '*.so*' -exec cp {} $OUT/lib/ \;
13+
14+
# Rewrite dynamic linker paths to point to output directory
15+
for fuzzer in $OUT/Fuzz*; do
16+
chrpath -r '$ORIGIN/lib' $fuzzer
17+
done

0 commit comments

Comments
 (0)