From: Ian Jackson Date: Tue, 23 Jun 2015 17:40:36 +0000 (+0100) Subject: Makefile: Order link line correctly X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e0ae8dfc265c0c04a19b8dd8496538850ad01212;p=people%2Fiwj%2Fring3-xl-test.git Makefile: Order link line correctly Unix linkers are order-sensitive, particularly for static linking, and libraries must come after the things that use them. Signed-off-by: Ian Jackson --- diff --git a/Makefile b/Makefile index 62770b0..2e79646 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ ALL_SRCS = $(SRCS) $(TESTS) all: $(TESTS:.c=) test_%: $(SRCS:.c=.o) test_%.o - $(CC) $(LDFLAGS) $(LDLIBS) $^ -o $@ + $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ %.d: %.c $(CC) -M $< > $@