From 9b171165a49ef045aa5db7ab65b1ae13b56e0bca Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 26 Feb 2020 20:20:21 -0800 Subject: [PATCH] ola: link against libm under glibc Fixes compilation. Signed-off-by: Rosen Penev --- net/ola/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ola/Makefile b/net/ola/Makefile index 7081f3c47..291b06a35 100644 --- a/net/ola/Makefile +++ b/net/ola/Makefile @@ -66,6 +66,7 @@ HOST_CONFIGURE_ARGS += \ --disable-doxygen-doc HOST_LDFLAGS += -Wl,-rpath="$(STAGING_DIR_HOSTPKG)/lib" +TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lm) # only build the ola_protoc thingy define Host/Compile