From: Rosen Penev Date: Thu, 27 Feb 2020 04:19:01 +0000 (-0800) Subject: protobuf: link against libm under glibc X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=ee2e3915f01eb563cd772070f89987077cb6ed36;p=openwrt-packages.git protobuf: link against libm under glibc Fixes compilation. Signed-off-by: Rosen Penev --- 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))