Commit c8643967 authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

mtdev2tuio: fix static linking

Liblo uses log(3), so we need to link with -lm when linking statically.

Fixes http://autobuild.buildroot.net/results/bec/becda4756c577ec158536408aba59797fbed938a/



Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent f8993ebb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -11,11 +11,12 @@ MTDEV2TUIO_LICENSE = GPLv3+
MTDEV2TUIO_LICENSE_FILES = COPYING

# mtdev2tuio Makefile misuses $(LD) as gcc, so we need to override LD
# here.
# here. Liblo uses log(3), so we need to link with -lm
define MTDEV2TUIO_BUILD_CMDS
	$(MAKE) \
		$(TARGET_CONFIGURE_OPTS) \
		LD="$(TARGET_CC)" \
		LIBS="-lmtdev -llo -lm" \
		-C $(@D)
endef