Skip to content

Commit

Permalink
Only enforce build order on dso stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed Dec 14, 2016
1 parent 26c7833 commit 9013bc1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions util/auto-dep.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ def todep(name):
if name.startswith("-l"):
name = name.replace("-l","",1)
if name in force_static:
return "%s/lib%s.a" % (TOOLCHAIN_PATH + '/lib', name)
return (False, "%s/lib%s.a" % (TOOLCHAIN_PATH + '/lib', name))
else:
return "%s/lib%s.so" % ('hdd/usr/lib', name)
return (True, "%s/lib%s.so" % ('hdd/usr/lib', name))
else:
return name
return (False, name)

if __name__ == "__main__":
if len(sys.argv) < 3:
Expand All @@ -128,4 +128,7 @@ def todep(name):
elif command == "--libs":
print " ".join([x for x in c.libs])
elif command == "--deps":
print " ".join([todep(x) for x in c.libs])
results = [todep(x) for x in c.libs]
normal = [x[1] for x in results if not x[0]]
order_only = [x[1] for x in results if x[0]]
print " ".join(normal) + " | " + " ".join(order_only)

0 comments on commit 9013bc1

Please sign in to comment.