readline: link directly against ncurses
authorMike Frysinger <vapier@gentoo.org>
Wed, 23 Mar 2011 23:42:55 +0000 (19:42 -0400)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 3 Apr 2011 17:52:51 +0000 (19:52 +0200)
Fixes link issues on uClibc for applications using libreadline.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/readline/readline-6.1-curses-link.patch [new file with mode: 0644]

diff --git a/package/readline/readline-6.1-curses-link.patch b/package/readline/readline-6.1-curses-link.patch
new file mode 100644 (file)
index 0000000..56b4770
--- /dev/null
@@ -0,0 +1,16 @@
+link readline directly to ncurses since it needs symbols from it
+
+upstream readline does this on purpose (no direct linking), but
+it doesn't make much sense in a Linux world
+
+--- a/support/shobj-conf
++++ b/support/shobj-conf
+@@ -42,7 +42,7 @@
+ SHOBJ_LIBS=
+ SHLIB_XLDFLAGS=
+-SHLIB_LIBS=
++SHLIB_LIBS=-lncurses
+ SHLIB_DOT='.'
+ SHLIB_LIBPREF='lib'