Hi, I have problems to get .LIBPATTERNS (to use -l... dependencies) work with pattern rules.
Is this expected or is it a bug ? I couldn't find any restrictions in
the make online manual. Maybe I missed something out...
In the makefile I have these lines:
.LIBPATTERNS=/tmp/lib%.a lib%.so lib%.a
LIB=/tmp/
LN=$(SILENT)LIBRARY_PATH="$(LIB)" gcc
This rule doesn't work:
../offline/%: %.o -lxxx
$(info Linking $(@F) ...)
$(LN) $^ -o $@
This rule works as expected:
../offline/%: %.o /tmp/libxxx.a
$(info Linking $(@F) ...)
$(LN) $^ -o $@
(/tmp/libxxx.a exists.)
$ make -v
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
The error message is 'make: *** No rule to make target...'.
Please reply with me in CC (not subscribed curently).
Thanks for any input.
Regards, Tim
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Bug-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-make
