Follow-up Comment #2, bug #56732 (project make): Thanks for looking at this. Make supports linker flags as dependencies of a recipe and automatically searches for the .a/.so file using VPATH. See the relevant section of the manual, 4.5.6 "Directory Search for Link Libraries".
I should have emphasised that this *does* work if it's *not* a pattern rule. In other words, if you replace this line: output/% : input/%.in -lAbc with: output/example : input/example.in -lAbc then the recipe works as expected (but, obviously, only for a file named "example"; unfortunately in my use case I need to build an arbitrary set of files, i.e. I need a pattern rule). _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?56732> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make