From 316caf6b39a26ed764a1bd1da58291fc5e7ebd52 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 30 Nov 2021 12:36:49 +0900 Subject: [PATCH] Enable load-relative on Solaris --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a3e97d54db..bb58fad089 100644 --- a/configure.ac +++ b/configure.ac @@ -3485,7 +3485,13 @@ AS_CASE("$enable_shared", [yes], [ LIBRUBY_SONAME='lib$(RUBY_SO_NAME).$(SOEXT).$(RUBY_PROGRAM_VERSION)' LIBRUBY_ALIASES='$(LIBRUBY_SONAME) lib$(RUBY_SO_NAME).$(SOEXT)' RUBY_APPEND_OPTIONS(LIBRUBY_DLDFLAGS, ["${linker_flag}-h${linker_flag:+,}"'$(@F)']) - XLDFLAGS="$XLDFLAGS "'-R${libdir}' + AS_IF([test "$load_relative" = yes], [ + libprefix="'\$\$ORIGIN/../${libdir_basename}'" + LIBRUBY_RPATHFLAGS="-R${libprefix}" + LIBRUBY_RELATIVE=yes + ], [ + LIBRUBY_RPATHFLAGS='-R${libdir}' + ]) ], [hpux*], [ XLDFLAGS="$XLDFLAGS "'-Wl,+s,+b,$(libdir)'