Skip to content

Commit

Permalink
Update ldcheck to fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mlm-games authored Oct 5, 2024
1 parent afd7c53 commit f5064a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/ldcheck
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def ldcheck(files, libpath, printalldefined, printresolved, demangle):
if not os.path.isfile(filename) and libpath:
filename = findlibraryinpath(filename, libpath)
libswithpath.append(filename)
with os.popen("readelf -d {0} | grep '\(NEEDED\)' | sed -r 's/.*\[(.*)\]/\\1/'".format(filename)) as f:
with os.popen(r"readelf -d {0} | grep '\(NEEDED\)' | sed -r 's/.*\[(.*)\]/\\1/'".format(filename)) as f:
for line in f:
dependency = line.rstrip()
if dependency not in libs:
Expand Down

0 comments on commit f5064a3

Please sign in to comment.