summaryrefslogtreecommitdiffstats
path: root/mysql-readline.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2011-04-15 16:58:14 +0200
committerRemi Collet <fedora@famillecollet.com>2011-04-15 16:58:14 +0200
commit5731cfe7c0f07bf655dffd9c065398090daa14cb (patch)
treec99a40524792a84ed3849bd64b9e03a6ae676b8e /mysql-readline.patch
prepare compat-mysql55
Diffstat (limited to 'mysql-readline.patch')
-rw-r--r--mysql-readline.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-readline.patch b/mysql-readline.patch
new file mode 100644
index 0000000..9636913
--- /dev/null
+++ b/mysql-readline.patch
@@ -0,0 +1,20 @@
+--- mysql-5.5.8/cmake/readline.cmake.readline 2010-12-03 18:58:26.000000000 +0100
++++ mysql-5.5.8/cmake/readline.cmake 2010-12-22 23:11:19.641789020 +0100
+@@ -139,7 +139,7 @@
+
+ IF(${name}_LIBRARY AND ${name}_INCLUDE_DIR)
+ SET(SYSTEM_READLINE_FOUND 1)
+- SET(CMAKE_REQUIRED_LIBRARIES ${${name}_LIBRARY})
++ SET(CMAKE_REQUIRED_LIBRARIES ${${name}_LIBRARY} ncurses)
+ CHECK_CXX_SOURCE_COMPILES("
+ #include <stdio.h>
+ #include <readline/readline.h>
+@@ -172,7 +172,7 @@
+ ${name}_USE_NEW_READLINE_INTERFACE)
+
+ IF(${name}_USE_LIBEDIT_INTERFACE OR ${name}_USE_NEW_READLINE_INTERFACE)
+- SET(READLINE_LIBRARY ${${name}_LIBRARY})
++ SET(READLINE_LIBRARY ${${name}_LIBRARY} ncurses)
+ SET(READLINE_INCLUDE_DIR ${${name}_INCLUDE_DIR})
+ SET(HAVE_HIST_ENTRY ${${name}_HAVE_HIST_ENTRY})
+ SET(USE_LIBEDIT_INTERFACE ${${name}_USE_LIBEDIT_INTERFACE})