From: Rosen Penev Date: Thu, 27 Feb 2020 04:18:10 +0000 (-0800) Subject: libupnpp: link against libm under glibc X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=4ba3e9cd8de234e3643a259575101738c926ee35;p=openwrt-packages.git libupnpp: link against libm under glibc Fixes compilation. Signed-off-by: Rosen Penev --- diff --git a/libs/libupnpp/Makefile b/libs/libupnpp/Makefile index 7146d8d3b..7c0395328 100644 --- a/libs/libupnpp/Makefile +++ b/libs/libupnpp/Makefile @@ -37,6 +37,8 @@ libupnpp defines useful objects over libupnp and can be used to create both devi and control points. It is shared by upmpdcli and upplay. endef +TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lm) + define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/libupnpp $(1)/usr/include/