From 713eb55c667fc60b670e2d7dbdb6851012770277 Mon Sep 17 00:00:00 2001 From: Kevin Backhouse Date: Wed, 22 Jun 2022 13:20:43 +0100 Subject: [PATCH] Use $ORIGIN in the rpath linker argument (#7904) Use $ORIGIN in the rpath linker argument. --- projects/ruby/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/ruby/build.sh b/projects/ruby/build.sh index 0fd4c7b4a..b187b0b43 100755 --- a/projects/ruby/build.sh +++ b/projects/ruby/build.sh @@ -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} \