Commit 34a338dc authored by Brad King's avatar Brad King
Browse files

ENH: In cmSystemTools::ChangeRPath check for the RUNPATH if RPATH does not exist.

parent d732de4a
......@@ -2208,7 +2208,12 @@ bool cmSystemTools::ChangeRPath(std::string const& file,
std::string rpathSuffix;
{
cmELF elf(file.c_str());
if(cmELF::StringEntry const* se = elf.GetRPath())
cmELF::StringEntry const* se = elf.GetRPath();
if(!se)
{
se = elf.GetRunPath();
}
if(se)
{
// Make sure the current rpath begins with the old rpath.
if(se->Value.length() < oldRPath.length() ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment