Paul Smith <psm...@gnu.org> writes: > I think it's better to just always use "libfoo.a" as a prerequisite, if > that's what you want. It's easy enough to use patsubst in the recipe to > convert them to -l options, if you want: > > $(LINK.cc) -o $@ $(patsubst lib%.a,-l%,$^)
But please don't do this because some day someone will have a libfoo.so in their path and they'll (a) give up on your software, (b) write you with an incomprehensible support request and waste your time, or (c) curse you for wasting their time. Explicit is better here.
signature.asc
Description: PGP signature
_______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make