summaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2015-09-30 13:47:53 +0200
committerBenoit Foucher <benoit@zeroc.com>2015-09-30 13:47:53 +0200
commit56b52991eb34c9645cf7229a0cb49c5324a7d0cb (patch)
tree0b8ef319a9fc9cb7d4b25c97504898df78799cf8 /ruby
parentFixed ICE-6824 - timeout test failure on SLES12 (diff)
downloadice-56b52991eb34c9645cf7229a0cb49c5324a7d0cb.tar.bz2
ice-56b52991eb34c9645cf7229a0cb49c5324a7d0cb.tar.xz
ice-56b52991eb34c9645cf7229a0cb49c5324a7d0cb.zip
Added embedded_runpath_prefix to RPATH if it's set
Diffstat (limited to 'ruby')
-rw-r--r--ruby/config/Make.rules.Darwin4
1 files changed, 3 insertions, 1 deletions
diff --git a/ruby/config/Make.rules.Darwin b/ruby/config/Make.rules.Darwin
index e50b9148db4..44deb8a3699 100644
--- a/ruby/config/Make.rules.Darwin
+++ b/ruby/config/Make.rules.Darwin
@@ -41,7 +41,9 @@ ifneq ($(STATICLIBS),yes)
# of relying on the RPATH set during the build (which isn't correct anymore for the
# installation directly layout).
#
- ifdef usr_dir_install
+ ifneq ($(embedded_runpath_prefix),)
+ installlib += ; install_name_tool -rpath $(RPATH_DIR) $(embedded_runpath_prefix) $(1)/$(3)
+ else ifdef usr_dir_install
installlib += ; install_name_tool -delete_rpath $(RPATH_DIR) $(1)/$(3)
else ifdef ice_src_dist
installlib += ; install_name_tool -rpath $(RPATH_DIR) @loader_path/../$(libsubdir) $(1)/$(3)