forked from pool/libedit
6f2a35a497
- rename README.SUSE (bnc#889029) - update to 20140620-3.1 upgrade to fix a crash with clear_history e.g. in php. OBS-URL: https://build.opensuse.org/request/show/242755 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libedit?expand=0&rev=49
38 lines
1.5 KiB
Diff
38 lines
1.5 KiB
Diff
Index: configure.ac
|
|
===================================================================
|
|
--- configure.ac.orig 2014-07-28 16:16:14.800585267 +0200
|
|
+++ configure.ac 2014-07-28 16:16:17.338585263 +0200
|
|
@@ -52,7 +52,7 @@ AC_CHECK_LIB(tinfo, tgetent,,
|
|
[AC_CHECK_LIB(termcap, tgetent,,
|
|
[AC_CHECK_LIB(termlib, tgetent,,
|
|
[AC_CHECK_LIB(curses, tgetent,,
|
|
- [AC_CHECK_LIB(ncurses, tgetent,,
|
|
+ [AC_CHECK_LIB(ncursesw, tgetent,,
|
|
[AC_MSG_ERROR([libcurses or libncurses are required!])]
|
|
)]
|
|
)]
|
|
Index: src/Makefile.am
|
|
===================================================================
|
|
--- src/Makefile.am.orig 2014-07-28 16:16:14.800585267 +0200
|
|
+++ src/Makefile.am 2014-07-28 16:17:25.508585142 +0200
|
|
@@ -66,5 +66,6 @@ nobase_include_HEADERS = histedit.h edit
|
|
|
|
nodist_libedit_la_SOURCES = $(BUILT_SOURCES)
|
|
|
|
-libedit_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION)
|
|
+libedit_la_CFLAGS = $(shell ncursesw6-config --cflags)
|
|
+libedit_la_LDFLAGS = $(shell ncursesw6-config --libs) -no-undefined -version-info $(LT_VERSION)
|
|
|
|
Index: libedit.pc.in
|
|
===================================================================
|
|
--- libedit.pc.in.orig 2014-07-28 16:16:14.800585267 +0200
|
|
+++ libedit.pc.in 2014-07-28 16:16:17.338585263 +0200
|
|
@@ -7,6 +7,6 @@ Name: libedit
|
|
Description: command line editor library provides generic line editing, history, and tokenization functions.
|
|
Version: @VERSION@
|
|
Requires:
|
|
-Libs: -L${libdir} -ledit @LIBS@
|
|
+Libs: -ledit
|
|
Cflags: -I${includedir} -I${includedir}/editline
|
|
|