summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-07-06 21:26:14 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-07-06 21:26:14 +0900
commit91258ed4490652e4c44ceca447ed1ebb5ec48ca3 (patch)
tree4cf2ffdf6270741dfffb726d4ebd6c3d4ffe984f /configure.ac
parent166d148355384c73d18c8465eb99dbc69e3eb400 (diff)
Enable libruby-relative on FreeBSD
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
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*], [