Revert "Fix linker library order"
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 14 May 2013 12:36:00 +0000 (14:36 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 14 May 2013 12:36:00 +0000 (14:36 +0200)
commit661805af83e2d4e7fa19432d6ae553460d6cd524
tree61d95f7b43103b5a8a1f9fdba8fe835b61abc024
parenta5b31eab4e1f190d68d51c47dabb60b64ee471e7
Revert "Fix linker library order"

This reverts commit 725e63c5194bfdcde0a2a3507aca156ba36cf49f.

Hrm, actually, these patches are wrong.

commit 725e63c5194bfdcde0a2a3507aca156ba36cf49f for instance:

"Libraries must be specified after the binary target."

 demo: demo.o
-       $(CC) -o $@ $(LIBS) $^
+       $(CC) -o $@ $^ $(LIBS)

the binary target here is "$@".

$^ is the source file name (demo.c).

this patch moves the source file name prior to the libraries, which is
incorrect (ref: gcc(1)). The input files should appear last.

So it breaks builds where $(LIBS) is non-empty.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/examples/demo/Makefile
This page took 0.02628 seconds and 4 git commands to generate.