diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2014-12-15 19:00:11 -0300 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-12-15 23:32:20 +0100 |
commit | 9ab0c37e41e8cd36b90b97bce1bafe668c0c0a20 (patch) | |
tree | 15c5a1ea43daf694711dae392b49f1d285e68237 | |
parent | d4b2b032a00c9922c9efa144b014dc086a7e48f1 (diff) | |
download | buildroot-9ab0c37e41e8cd36b90b97bce1bafe668c0c0a20.tar.gz buildroot-9ab0c37e41e8cd36b90b97bce1bafe668c0c0a20.zip |
ncurses: fix gpm support
The CF_LIB_SONAME macro doesn't work when cross compiling so we need to
specify the lib name for libgpm explicitly. While at it make gpm support
explicit in the form of --without-gpm when it's not selected and adding
it to dependencies when it is. Fixes:
http://autobuild.buildroot.net/results/32a/32a5ba3905772a3f2f2ec9d1b290a109fe22d9f9/
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r-- | package/ncurses/ncurses.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/package/ncurses/ncurses.mk b/package/ncurses/ncurses.mk index 7febed63f0..47378f70a6 100644 --- a/package/ncurses/ncurses.mk +++ b/package/ncurses/ncurses.mk @@ -43,6 +43,14 @@ else ifeq ($(BR2_SHARED_STATIC_LIBS),y) NCURSES_CONF_OPTS += --with-shared --with-normal endif +# configure can't find the soname for libgpm when cross compiling +ifeq ($(BR2_PACKAGE_GPM),y) +NCURSES_CONF_OPTS += --with-gpm=libgpm.so.2 +NCURSES_DEPENDENCIES += gpm +else +NCURSES_CONF_OPTS += --without-gpm +endif + NCURSES_LIBS-y = ncurses NCURSES_LIBS-$(BR2_PACKAGE_NCURSES_TARGET_MENU) += menu NCURSES_LIBS-$(BR2_PACKAGE_NCURSES_TARGET_PANEL) += panel |