URL: <http://savannah.gnu.org/bugs/?25703>
Summary: .LIBPATTERNS is not pattern dependent. Project: make Submitted by: None Submitted on: Wed 25 Feb 2009 01:34:13 PM UTC Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 3.81 Operating System: POSIX-Based Fixed Release: None _______________________________________________________ Details: The following makefile illustrates what I regard as a bug in make's library search mechanism. In short .LIBPATTERNS does not work as either a pattern or target dependent variable. all: dynamic.show static.show dynamic.%: .LIBPATTERNS = lib%.so lib%.a static.%: .LIBPATTERNS = lib%.a lib%.so libs := -lm -lnsl dynamic.show: $(libs) static.show: $(libs) %.show: @ echo "LIBPATTERNS and VPATH resolution: $(.LIBPATTERNS) : $@ : $^" _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?25703> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make