Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

Commit

Permalink
change_rpath: Use patchelf --force-rpath [Linux] (#599)
Browse files Browse the repository at this point in the history
Use RPATH rather than RUNPATH.
RPATH takes precedence over LD_LIBRARY_PATH.
  • Loading branch information
sjackman authored Feb 16, 2018
1 parent fcac1a0 commit 80394bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/extend/os/linux/keg_relocate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def change_rpath(file, old_prefix, new_prefix)
lib_path = "#{new_prefix}/lib"
rpath << lib_path unless rpath.include? lib_path
new_rpath = rpath.join(":")
cmd = [patchelf, "--set-rpath", new_rpath]
cmd = [patchelf, "--force-rpath", "--set-rpath", new_rpath]

if file.binary_executable?
cmd_interpreter = [patchelf, "--print-interpreter", file]
Expand Down

0 comments on commit 80394bd

Please sign in to comment.