From: Fabrice Fontaine Date: Wed, 25 Sep 2019 16:52:48 +0000 (+0200) Subject: package/ytree: fix static build with readline X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1c90467d8a4be273a3010fad4728115b470ccbf;p=buildroot.git package/ytree: fix static build with readline Fixes: - http://autobuild.buildroot.org/results/b1a1392636467f8c07504fa6cfb17962764820ae Signed-off-by: Fabrice Fontaine Reviewed-by: Giulio Benetti Signed-off-by: Thomas Petazzoni --- diff --git a/package/ytree/ytree.mk b/package/ytree/ytree.mk index 863eba741c..d9716f93ba 100644 --- a/package/ytree/ytree.mk +++ b/package/ytree/ytree.mk @@ -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