use LDLIBS for linker flags
When you put -lfoo into the dependency line of make, it forces it to
search /lib and /usr/lib for files to link against. This can cause
problems when trying to cross-compile or build for different ABIs.
Use the standard LDLIBS variable instead.
URL: https://bugs.gentoo.org/505760
Reported-by: Georgi Georgiev <chutzimir@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>