You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is only problem with "rule" statement - the library itself is added to the library making command.
Actually this better be done completely different way: if a static library is a dependency of a program or a dynamic library, then all possible static libraries should be added to both the command AND the dependencies in the rule. This should work different than with dynamic libraries - for dynamic libraries it can stay with the phony target assigned to the library. For static libraries it should extract all possible static libraries very specific way:
Take all dependent targets.
By following whether the target is a static library, collect also all its dependent targets as well. Do it recursively for all such targets.
Now that the targets are collected, reorder them to achieve the flat list in order of dependencies.
From every such target get the name of the static library AND everything in their -ldflags (just like it's done for commands)
Again, make sure that all library specifications are unique. Dependencies must follow requesters!
All names of static libraries that are assigned to these targets must comprise the list of dependencies (NOT the target names!)
The text was updated successfully, but these errors were encountered:
This is only problem with "rule" statement - the library itself is added to the library making command.
Actually this better be done completely different way: if a static library is a dependency of a program or a dynamic library, then all possible static libraries should be added to both the command AND the dependencies in the rule. This should work different than with dynamic libraries - for dynamic libraries it can stay with the phony target assigned to the library. For static libraries it should extract all possible static libraries very specific way:
-ldflags
(just like it's done for commands)The text was updated successfully, but these errors were encountered: