Fix boost LDFLAGS (libdir) on RISC-V (riscv64)
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
parent
285aba1a43
commit
13afddec23
13
fix-boost-riscv64-libdir.patch
Normal file
13
fix-boost-riscv64-libdir.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/m4/ax_boost_base.m4 b/m4/ax_boost_base.m4
|
||||
index 129c248..8f5acdf 100644
|
||||
--- a/m4/ax_boost_base.m4
|
||||
+++ b/m4/ax_boost_base.m4
|
||||
@@ -95,7 +95,7 @@ if test "x$want_boost" = "xyes"; then
|
||||
x86_64)
|
||||
libsubdirs="lib64 libx32 lib lib64"
|
||||
;;
|
||||
- ppc64|s390x|sparc64|aarch64|ppc64le)
|
||||
+ ppc64|s390x|sparc64|aarch64|ppc64le|riscv64)
|
||||
libsubdirs="lib64 lib lib64 ppc64le"
|
||||
;;
|
||||
esac
|
@ -1,14 +1,20 @@
|
||||
Summary: Produces a document with syntax highlighting
|
||||
Name: source-highlight
|
||||
Version: 3.1.8
|
||||
Release: 23%{?dist}
|
||||
Release: 23.0.riscv64%{?dist}
|
||||
License: GPLv3+
|
||||
Source0: ftp://ftp.gnu.org/gnu/src-highlite/%{name}-%{version}.tar.gz
|
||||
Source1: ftp://ftp.gnu.org/gnu/src-highlite/%{name}-%{version}.tar.gz.sig
|
||||
Patch0: fix-boost-riscv64-libdir.patch
|
||||
URL: http://www.gnu.org/software/src-highlite/
|
||||
BuildRequires: bison, flex, boost-devel
|
||||
BuildRequires: help2man, ctags, chrpath, pkgconfig(bash-completion)
|
||||
BuildRequires: gcc, gcc-c++
|
||||
%ifarch riscv64
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: libtool
|
||||
%endif
|
||||
Requires: ctags
|
||||
|
||||
%description
|
||||
@ -30,8 +36,15 @@ Development files for source-highlight
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%ifarch riscv64
|
||||
%patch -p1 -b .orig
|
||||
%endif
|
||||
|
||||
%build
|
||||
%ifarch riscv64
|
||||
autoreconf -fiv
|
||||
%endif
|
||||
|
||||
%configure --disable-static \
|
||||
--with-boost-regex=boost_regex
|
||||
%make_build
|
||||
@ -79,6 +92,9 @@ rmdir $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
|
||||
%{_includedir}/srchilite/*.h
|
||||
|
||||
%changelog
|
||||
* Wed Feb 20 2019 David Abdurachmanov <david.abdurachmanov@gmail.com> - 3.1.8-23.0.riscv64
|
||||
- Fix boost LDFLAGS (libdir) for RISC-V (riscv64)
|
||||
|
||||
* Mon Feb 18 2019 Adrian Reber <adrian@lisas.de> - 3.1.8-23
|
||||
- Require boost-devel in the source-highlight-devel package (#1638029)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user