Fix linker library order
authorFrancis Giraldeau <francis.giraldeau@gmail.com>
Sun, 12 May 2013 02:58:12 +0000 (22:58 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 12 May 2013 02:58:12 +0000 (22:58 -0400)
Libraries must be specified after the binary target.

Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/examples/demo/Makefile

index 7ae6547eff4a476bf2f75bae96cf4e90f3550213..bbc8ccb7e6aae5821acf44236403a9865c195f07 100644 (file)
@@ -55,7 +55,7 @@ demo.o: demo.c
        $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
 
 demo: demo.o
-       $(CC) -o $@ $(LIBS) $^
+       $(CC) -o $@ $^ $(LIBS)
 
 .PHONY: clean
 clean:
This page took 0.024267 seconds and 4 git commands to generate.