diff options
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 015237c43a..0acadac2e6 100644 --- a/configure.ac +++ b/configure.ac @@ -3413,6 +3413,10 @@ AS_CASE("$enable_shared", [yes], [ AS_IF([test "$rb_cv_binary_elf" != "yes" ], [ LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)" LIBRUBY_ALIASES='' + ], [test "$load_relative" = yes], [ + libprefix="'\$\$ORIGIN/../${libdir_basename}'" + LIBRUBY_RPATHFLAGS="-Wl,-rpath,${libprefix}" + LIBRUBY_RELATIVE=yes ]) ], [netbsd*], [ |