package/ytree: fix static build with readline
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 25 Sep 2019 16:52:48 +0000 (18:52 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 7 Oct 2019 21:19:14 +0000 (23:19 +0200)
Fixes:
 - http://autobuild.buildroot.org/results/b1a1392636467f8c07504fa6cfb17962764820ae

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/ytree/ytree.mk

index 863eba741c913ab0066a9f4677bbaddeba933fd2..d9716f93bab8036c35dd61df6b0b8ecb406be1e9 100644 (file)
@@ -14,9 +14,9 @@ YTREE_CFLAGS = -DCOLOR_SUPPORT $(TARGET_CFLAGS)
 YTREE_LDFLAGS = -lncurses $(TARGET_LDFLAGS)
 
 ifeq ($(BR2_PACKAGE_READLINE),y)
-YTREE_DEPENDENCIES += readline
+YTREE_DEPENDENCIES += host-pkgconf readline
 YTREE_CFLAGS += -DREADLINE_SUPPORT
-YTREE_LDFLAGS += -lreadline
+YTREE_LDFLAGS += `$(PKG_CONFIG_HOST_BINARY) --libs readline`
 endif
 
 define YTREE_BUILD_CMDS