diff options
author | Kevin Backhouse <kevinbackhouse@github.com> | 2022-06-22 13:20:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-22 13:20:43 +0100 |
commit | 713eb55c667fc60b670e2d7dbdb6851012770277 (patch) | |
tree | b318fce1af69dd27c54587b9b8a7567694789b2c | |
parent | 2b6572ecc598081c5963c9fb08a22946560fcce1 (diff) |
Use $ORIGIN in the rpath linker argument (#7904)
Use $ORIGIN in the rpath linker argument.
-rwxr-xr-x | projects/ruby/build.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/ruby/build.sh b/projects/ruby/build.sh index 0fd4c7b4..b187b0b4 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} \ |