lmbench: fix build with libtirpc
authorBaruch Siach <baruch@tkos.co.il>
Fri, 6 Mar 2015 10:10:50 +0000 (12:10 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 6 Mar 2015 11:55:44 +0000 (12:55 +0100)
commitcf2f41c20aa2589fc5713197d920eb824909ff69
treeb2a81df5eff6674f6227018187fedd3848e78908
parente55cddfe9e48193fc0d4b831e1e2c09b3937237e
lmbench: fix build with libtirpc

When linking with an external libtirpc, -ltirpc must come after lmbench.a in
the linker command line. Use LDLIBS for that.

Fixes:
http://autobuild.buildroot.net/results/89e/89ee35561d3a49f38e9a747ed78a5846be4764c8/
http://autobuild.buildroot.net/results/409/4097b1c2585db2de517a8741174c02177aabee00/

and more.

Also, remove LMBENCH_LDLIBS assignment. This variable was not used before.

Reviewed-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Tested-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/lmbench/lmbench.mk