deploy_tool fix

This commit is contained in:
2021-04-21 18:27:57 +03:00
parent 334061e1d7
commit a19c6f1292

View File

@@ -492,7 +492,7 @@ void patchNameTool() {
void patchRPathFile(const PIFile::FileInfo & file) { void patchRPathFile(const PIFile::FileInfo & file) {
PIString fo = execute("file \"" + file.path + "\""); PIString fo = execute("file \"" + file.path + "\"");
if (!fo.contains("ELF") || !fo.contains("executable")) return; if (!fo.contains("ELF")) return;
PIString rp = "\\$ORIGIN:\\$ORIGIN/lib"; PIString rp = "\\$ORIGIN:\\$ORIGIN/lib";
PIString arp = PIDir(file.dir()).relative(out_dir); PIString arp = PIDir(file.dir()).relative(out_dir);
if (!arp.isEmpty() && arp != "." && arp != "lib") if (!arp.isEmpty() && arp != "." && arp != "lib")