ola: link against libm under glibc
authorRosen Penev <redacted>
Thu, 27 Feb 2020 04:20:21 +0000 (20:20 -0800)
committerRosen Penev <redacted>
Thu, 27 Feb 2020 04:28:17 +0000 (20:28 -0800)
Fixes compilation.

Signed-off-by: Rosen Penev <redacted>
net/ola/Makefile

index 7081f3c47ba09eaa4e5348890e276be48b7ca075..291b06a35790679ac9947174cc6e3c7824359172 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT