samba4: specify ncurses-config
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Fri, 6 Mar 2015 10:42:48 +0000 (07:42 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 6 Mar 2015 11:38:45 +0000 (12:38 +0100)
When ncurses wide is enabled samba doesn't automatically find the
appropiate ncurses-config script and finds the host variant (which is
non-widec) which leaks improper library directories into the build.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/samba4/samba4.mk

index e4c9ef2549f1cdd681b73229828fa74b7a494044..527d584f17e75c6cc0a11949502c0bfc476a547c 100644 (file)
@@ -64,6 +64,7 @@ SAMBA4_CONF_OPTS += --disable-gnutls
 endif
 
 ifeq ($(BR2_PACKAGE_NCURSES_TARGET_FORM)$(BR2_PACKAGE_NCURSES_TARGET_MENU)$(BR2_PACKAGE_NCURSES_TARGET_PANEL),yyy)
+SAMBA4_CONF_ENV += NCURSES_CONFIG="$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS)"
 SAMBA4_DEPENDENCIES += ncurses
 else
 SAMBA4_CONF_OPTS += --without-regedit