dnsmasq: static linking with lua doesn't need -ldl
authorPeter Korsgaard <peter@korsgaard.com>
Thu, 12 Jun 2014 08:46:41 +0000 (10:46 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 12 Jun 2014 08:46:41 +0000 (10:46 +0200)
commitcbf2ae296ed08bee10945e9ca95459adbf793c67
treedfa85c4e9abd94a40a4c45015cac0c68fc53d357
parent11dbb615338cd768acc2c3138064ddf557e9b60b
dnsmasq: static linking with lua doesn't need -ldl

Fixes http://autobuild.buildroot.net/results/77e/77e4123a3ddc934efedf4b09adc2436421ee70b3/

liblua only uses libdl when dynamic linking is used, and certain toolchains
(E.G.  bfin) doesn't provide a libdl - So only link against it if it is
needed.

At the same time change it pass the library in LIBS instead of LDFLAGS so it
ends up at the end of the linker cmdline.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/dnsmasq/dnsmasq.mk