upload readline-8.0-shlib.patch to fix undefined symbol problem

This commit is contained in:
chenziyang 2023-02-01 17:09:55 +08:00
parent f1f64c0a57
commit bb08b49081
2 changed files with 36 additions and 1 deletions

30
readline-8.0-shlib.patch Normal file
View File

@ -0,0 +1,30 @@
From 3c0b10478d91274e761a50c5958b6a3645a4e8ee Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <jchaloup@redhat.com>
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

View File

@ -1,12 +1,14 @@
Name: readline Name: readline
Version: 8.2 Version: 8.2
Release: 1 Release: 2
Summary: Readline library for editing typed command lines Summary: Readline library for editing typed command lines
License: GPLv3+ License: GPLv3+
URL: http://tiswww.case.edu/php/chet/readline/rltop.html URL: http://tiswww.case.edu/php/chet/readline/rltop.html
Source0: http://git.savannah.gnu.org/cgit/readline.git/snapshot/%{name}-%{version}.tar.gz 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 BuildRequires: gcc gcc-c++ ncurses-devel
%description %description
@ -78,6 +80,9 @@ export CPPFLAGS="-I%{_includedir}/ncurses"
%changelog %changelog
* Wed Feb 1 2023 chenziyang <chenziyang4@huawei.com> - 8.2-2
- upload readline-8.0-shlib.patch to fix undefined symbol problem
* Tue Jan 31 2023 chenziyang <chenziyang4@huawei.com> - 8.2-1 * Tue Jan 31 2023 chenziyang <chenziyang4@huawei.com> - 8.2-1
- update to 8.2 - update to 8.2