Enable libruby-relative on FreeBSD

This commit is contained in:
Nobuyoshi Nakada 2021-07-06 21:26:14 +09:00
parent 166d148355
commit 91258ed449
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -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*], [