upmpdcli: link against libm under glibc 11454/head
authorRosen Penev <rosenp@gmail.com>
Thu, 27 Feb 2020 04:17:03 +0000 (20:17 -0800)
committerRosen Penev <rosenp@gmail.com>
Fri, 28 Feb 2020 01:02:59 +0000 (17:02 -0800)
Fixes compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
sound/upmpdcli/Makefile

index a89f8a0a6575e64191d463569067c92df102ccc6..9cc15bdf415fb495b1a593cdf79f946b5e9bdbc7 100644 (file)
@@ -42,6 +42,8 @@ define Package/upmpdcli/config
        source "$(SOURCE)/Config.in"
 endef
 
+TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lm)
+
 define Package/upmpdcli/install
        $(INSTALL_DIR) $(1)/etc
        $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/upmpdcli.conf $(1)/etc/