summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>2014-09-23 10:33:11 +0100
committerPeter Korsgaard <peter@korsgaard.com>2014-09-25 11:01:01 +0200
commit8733f742b619193fba69daf5f2297f2e89896ade (patch)
tree9c5ea8f7801ae87bd7c79876a5acbdef2eba9119
parent75356aee8df39cbccf0f2dfc1d3c4d002bb6fb83 (diff)
downloadbuildroot-8733f742b619193fba69daf5f2297f2e89896ade.tar.gz
buildroot-8733f742b619193fba69daf5f2297f2e89896ade.zip
ncurses: Add libcurses symlink to libncurses
Some packages use -lcurses when they are linking, so they try to link to a library called libcurses. The library provided by our ncurses package is called libncurses, so those packages fail to link with a message like this one: /bin/ld: cannot find -lcurses Installing a libcurses symlink to libncurses fixes the problem. Fixes: http://autobuild.buildroot.net/results/466/466995f9534447a4f54327a14c44ef9e16dd1123/ Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Reviewed-by: Markos Chandras <Markos.Chandras@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/ncurses/ncurses.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/ncurses/ncurses.mk b/package/ncurses/ncurses.mk
index 81a39988ad..3f574076de 100644
--- a/package/ncurses/ncurses.mk
+++ b/package/ncurses/ncurses.mk
@@ -46,6 +46,8 @@ define NCURSES_LINK_LIBS
ln -sf $${lib}$(NCURSES_LIB_SUFFIX).a \
$(1)/usr/lib/$${lib}.a; \
done
+ ln -sf libncurses$(NCURSES_LIB_SUFFIX).a \
+ $(1)/usr/lib/libcurses.a
endef
else
define NCURSES_LINK_LIBS
@@ -55,6 +57,10 @@ define NCURSES_LINK_LIBS
ln -sf $${lib}$(NCURSES_LIB_SUFFIX).so \
$(1)/usr/lib/$${lib}.so; \
done
+ ln -sf libncurses$(NCURSES_LIB_SUFFIX).a \
+ $(1)/usr/lib/libcurses.a
+ ln -sf libncurses$(NCURSES_LIB_SUFFIX).so \
+ $(1)/usr/lib/libcurses.so
endef
endif
OpenPOWER on IntegriCloud