diff --git a/readline-8.0-shlib.patch b/readline-8.0-shlib.patch new file mode 100644 index 0000000..1e29fd6 --- /dev/null +++ b/readline-8.0-shlib.patch @@ -0,0 +1,30 @@ +From 3c0b10478d91274e761a50c5958b6a3645a4e8ee Mon Sep 17 00:00:00 2001 +From: Jan Chaloupka +Date: Mon, 21 Jul 2014 13:50:01 +0200 +Subject: [PATCH] shlib + +--- + support/shobj-conf | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/support/shobj-conf b/support/shobj-conf +index cd7634d..b9df437 100644 +--- a/support/shobj-conf ++++ b/support/shobj-conf +@@ -126,10 +126,11 @@ sunos5*|solaris2*) + linux*-*|gnu*-*|k*bsd*-gnu-*|midnightbsd*|freebsd*|dragonfly*) + SHOBJ_CFLAGS=-fPIC + SHOBJ_LD='${CC}' +- SHOBJ_LDFLAGS='-shared -Wl,-soname,$@' ++ SHOBJ_LDFLAGS='$(CFLAGS) -shared -Wl,-soname,$@' + +- SHLIB_XLDFLAGS='-Wl,-rpath,$(libdir) -Wl,-soname,`basename $@ $(SHLIB_MINOR)`' ++ SHLIB_XLDFLAGS='-Wl,-soname,`basename $@ $(SHLIB_MINOR)`' + SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' ++ SHLIB_LIBS='-ltinfo' + ;; + + # Darwin/MacOS X +-- +2.33.0 + diff --git a/readline.spec b/readline.spec index 7657bb3..682e60d 100644 --- a/readline.spec +++ b/readline.spec @@ -1,12 +1,14 @@ Name: readline Version: 8.2 -Release: 1 +Release: 2 Summary: Readline library for editing typed command lines License: GPLv3+ URL: http://tiswww.case.edu/php/chet/readline/rltop.html Source0: http://git.savannah.gnu.org/cgit/readline.git/snapshot/%{name}-%{version}.tar.gz +Patch0: readline-8.0-shlib.patch + BuildRequires: gcc gcc-c++ ncurses-devel %description @@ -78,6 +80,9 @@ export CPPFLAGS="-I%{_includedir}/ncurses" %changelog +* Wed Feb 1 2023 chenziyang - 8.2-2 +- upload readline-8.0-shlib.patch to fix undefined symbol problem + * Tue Jan 31 2023 chenziyang - 8.2-1 - update to 8.2