Skip to content

Commit

Permalink
Added embedded_runpath_prefix to RPATH if it's set
Browse files Browse the repository at this point in the history
  • Loading branch information
bentoi committed Sep 30, 2015
1 parent 8fc4ec4 commit 56b5299
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion php/config/Make.rules.Darwin
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,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)
Expand Down
4 changes: 3 additions & 1 deletion python/config/Make.rules.Darwin
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,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)
Expand Down
4 changes: 3 additions & 1 deletion ruby/config/Make.rules.Darwin
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 56b5299

Please sign in to comment.