git-svn-id: svn://db.shs.com.ru/pip@1012 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -182,16 +182,24 @@ void procLdd(PIString file, bool ext_lib = false, int cur_depth = 0) {
|
||||
if (!objdump.isEmpty()) {
|
||||
cmd = objdump + " -p " + file;
|
||||
cmd += " | grep \"DLL Name:\"";
|
||||
lines = execute(cmd).split("\n");
|
||||
cmd = objdump + " -p " + file;
|
||||
cmd += " | grep \"NEEDED\"";
|
||||
lines << execute(cmd).split("\n");
|
||||
cmd.clear();
|
||||
}
|
||||
if (!otool.isEmpty()) {
|
||||
cmd = otool + " -L " + file;
|
||||
cmd += " | grep -o \".*(\"";
|
||||
}
|
||||
//piCout << cmd;
|
||||
lines = execute(cmd).split("\n");
|
||||
if (!cmd.isEmpty())
|
||||
lines = execute(cmd).split("\n");
|
||||
if (!objdump.isEmpty()) {
|
||||
piForeach (PIString & l, lines) {
|
||||
l.trim().cutLeft(9).trim();
|
||||
l.trim();
|
||||
if (l.startsWith("DLL")) l.cutLeft(9).trim();
|
||||
else l.cutLeft(6).trim();
|
||||
l.append('.').prepend('.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user