elf2flt: fix build when zlib is not installed on the host
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 26 May 2013 12:08:13 +0000 (12:08 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 27 May 2013 21:50:54 +0000 (23:50 +0200)
commit85e3090a92e13b7afc426cb2d9189bbe8d2adaf4
tree1d12f2053c914add2a191998715f00828dd53d85
parent0170b420c4d72daf6dc08b49b856bdb3e88e4a2a
elf2flt: fix build when zlib is not installed on the host

For a reason that's fairly unclear to me, Peter added a '-lz' link
flag to the elf2flt.mk build in d5664ee99 ("elf2flt: fix link").

However, the zlib library may not necessarily be installed on the host
machine, so we should depend on host-zlib, and pass the appropriate
LDFLAGS. This is what this patch does.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
toolchain/elf2flt/elf2flt.mk