tangramdotdev / packages

A collection of community maintained Tangram packages.
https://www.tangram.dev
MIT License
8 stars 2 forks source link

Optimize library paths in std.wrap #35

Open deciduously opened 6 months ago

deciduously commented 6 months ago

In the ld_proxy, during wrapper creation we search the available library paths for those libraries listed in NEEDED, and recursively perform this search to locate all transitively needed libraries, producing a final library directory containing only those requested and nothing else. This same optimization is not implemented in, std.wrap(), leading binaries wrapped this way to carry extra unneeded references.

Mirror the logic from ld_proxy to optionally allow building optimized library paths from Tangram Typescript.