Use $ORIGIN in the rpath linker argument (#7904)

Use $ORIGIN in the rpath linker argument.
This commit is contained in:
Kevin Backhouse 2022-06-22 13:20:43 +01:00 committed by GitHub
parent 2b6572ecc5
commit 713eb55c66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ ruby gen_init_ruby_load_paths.rb > init_ruby_load_paths.h
# The -rpath flag helps the dynamic linker to find .so files in /out/lib
${CC} ${CFLAGS} fuzz_ruby_gems.c -o $OUT/fuzz_ruby_gems \
-Wall \
-Wl,-rpath,./lib \
-Wl,-rpath,'$ORIGIN'/lib \
-L${RUBY_LIB_DIR} \
${RUBY_INCLUDES} \
${RUBY_LIBRARIES} \