From 4ba3e9cd8de234e3643a259575101738c926ee35 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 26 Feb 2020 20:18:10 -0800 Subject: [PATCH] libupnpp: link against libm under glibc Fixes compilation. Signed-off-by: Rosen Penev --- libs/libupnpp/Makefile | 2 ++ 1 file changed, 2 insertions(+) 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/