How about making the lib/ directory separate out the "these are optional"
pieces from the "these are basic libs that got explicitly enabled by the
user", and leave the archive usage for the truly optional stuff?
There's nothing inherently wrong with using the archive format per se, and
it still makes sense to just let the linker do the simple stuff instead of
adding unnecessary code to the configuration management to do stuff that
the linker would give us for free.
The _clean_ way to do this (I think) might be to make the normal build
rules understand a "obj-l" for "library objects", and always build a
"lib.a" for those, instead of having the magic "if there is a L_TARGET,
use obj-y and make a library of them" special case rule.
Sam, can you try to sprinkle the proper Makefile magic pixie-dust around?
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/