Revert "Fix (another) linker library order"
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 14 May 2013 12:35:28 +0000 (14:35 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 14 May 2013 12:35:28 +0000 (14:35 +0200)
commita5b31eab4e1f190d68d51c47dabb60b64ee471e7
tree3d4db234c02d9a853e46eae1a4d954160988184a
parent83e43212040a26aca40a4f8fefaa3682e9edaa57
Revert "Fix (another) linker library order"

This reverts commit a51ac6d9a011ba10b0be396dc1e801b2fc829651.

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/hello-static-lib/Makefile
This page took 0.025398 seconds and 4 git commands to generate.