pv: fix build issue with some toolchains
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 6 Oct 2013 16:30:33 +0000 (18:30 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 6 Oct 2013 18:40:25 +0000 (20:40 +0200)
commit1980bf056e16c604c1f33ce9771d725da096cfe7
treee263fe851c949759ad084099a26932b7b59227c6
parentd57d4a8ede2949f5a02d90528392bf34a2ec8a81
pv: fix build issue with some toolchains

While 'pv' uses autoconf, it does not use automake for its
makefiles. It uses $(LD) $(LDFLAGS) to achieve partial linking, but
using 'ld' directly doesn't work well with some toolchain
configuration, as the ld default emulation may not necessarily be the
correct one. By passing custom values for LD and LDFLAGS, we ensure
that 'gcc' is used to do these partial linking steps.

Fixes the following build failures (x86-64 and mips64) :

  http://autobuild.buildroot.org/results/9ac/9aca276a220ad1460e5b32bd042dd4c93649baf3/build-end.log
  http://autobuild.buildroot.org/results/910/91044c01dcc3c4150aa6e74f5964fff27b9dac79/build-end.log

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/pv/pv.mk