Merge topic 'link-generated-rpaths-first'
9370b697
Re-order link line to place RPATH entries before libraries
This commit is contained in:
commit
5b85a3e26c
|
@ -1531,9 +1531,6 @@ void cmLocalGenerator::OutputLinkLibraries(std::string& linkLibraries,
|
||||||
linkLibs += " ";
|
linkLibs += " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write the library flags to the build rule.
|
|
||||||
fout << linkLibs;
|
|
||||||
|
|
||||||
// Check what kind of rpath flags to use.
|
// Check what kind of rpath flags to use.
|
||||||
if (cli.GetRuntimeSep().empty()) {
|
if (cli.GetRuntimeSep().empty()) {
|
||||||
// Each rpath entry gets its own option ("-R a -R b -R c")
|
// Each rpath entry gets its own option ("-R a -R b -R c")
|
||||||
|
@ -1560,6 +1557,9 @@ void cmLocalGenerator::OutputLinkLibraries(std::string& linkLibraries,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Write the library flags to the build rule.
|
||||||
|
fout << linkLibs;
|
||||||
|
|
||||||
// Add the linker runtime search path if any.
|
// Add the linker runtime search path if any.
|
||||||
std::string rpath_link = cli.GetRPathLinkString();
|
std::string rpath_link = cli.GetRPathLinkString();
|
||||||
if (!cli.GetRPathLinkFlag().empty() && !rpath_link.empty()) {
|
if (!cli.GetRPathLinkFlag().empty() && !rpath_link.empty()) {
|
||||||
|
|
Loading…
Reference in New Issue