From ee2e3915f01eb563cd772070f89987077cb6ed36 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 26 Feb 2020 20:19:01 -0800 Subject: [PATCH] protobuf: link against libm under glibc Fixes compilation. Signed-off-by: Rosen Penev --- libs/protobuf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/protobuf/Makefile b/libs/protobuf/Makefile index 7d23a379d..0b9bab9e8 100644 --- a/libs/protobuf/Makefile +++ b/libs/protobuf/Makefile @@ -81,7 +81,7 @@ CMAKE_OPTIONS += \ -Dprotobuf_WITH_ZLIB=ON \ -DBUILD_SHARED_LIBS=ON -TARGET_LDFLAGS += -latomic +TARGET_LDFLAGS += -latomic $(if $(CONFIG_USE_GLIBC),-lm) define Build/InstallDev $(call Build/InstallDev/cmake,$(1))