libupnpp: link against libm under glibc
authorRosen Penev <redacted>
Thu, 27 Feb 2020 04:18:10 +0000 (20:18 -0800)
committerRosen Penev <redacted>
Thu, 27 Feb 2020 04:30:32 +0000 (20:30 -0800)
Fixes compilation.

Signed-off-by: Rosen Penev <redacted>
libs/libupnpp/Makefile

index 7146d8d3be5a71b261ba69f0f0752719f57a338c..7c03953280db90a66e10ecf54c47fdba7a81e4f5 100644 (file)
@@ -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/
git clone https://git.99rst.org/PROJECT