Add RISC-V (riscv64) support
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
parent
06048a17cd
commit
5511a8904e
|
@ -7,7 +7,7 @@
|
|||
|
||||
Name: webkit2gtk3
|
||||
Version: 2.21.2
|
||||
Release: 2%{?dist}
|
||||
Release: 2.0.riscv64%{?dist}
|
||||
Summary: GTK+ Web content engine library
|
||||
|
||||
License: LGPLv2
|
||||
|
@ -26,6 +26,8 @@ Patch2: cloop-big-endians.patch
|
|||
Patch3: page-size.patch
|
||||
# Explicitly specify python2 over python
|
||||
Patch4: python2.patch
|
||||
# Add RISC-V (riscv64) support
|
||||
Patch5: webkitgtk-2.21.2-riscv64.patch
|
||||
|
||||
BuildRequires: at-spi2-core-devel
|
||||
BuildRequires: bison
|
||||
|
@ -182,7 +184,7 @@ rm -rf Source/ThirdParty/qunit/
|
|||
|
||||
# Decrease debuginfo even on ix86 because of:
|
||||
# https://bugs.webkit.org/show_bug.cgi?id=140176
|
||||
%ifarch s390 s390x %{arm} %{ix86} ppc %{power64} %{mips}
|
||||
%ifarch s390 s390x %{arm} %{ix86} ppc %{power64} %{mips} riscv64
|
||||
# Decrease debuginfo verbosity to reduce memory consumption even more
|
||||
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
|
||||
%endif
|
||||
|
@ -196,6 +198,10 @@ rm -rf Source/ThirdParty/qunit/
|
|||
%global optflags %{optflags} -DUSER_AGENT_GTK_DISTRIBUTOR_NAME=\'\\"Fedora\\"\'
|
||||
%endif
|
||||
|
||||
%ifarch riscv64
|
||||
export LDFLAGS="${LDFLAGS} -latomic %{__global_ldflags}"
|
||||
%endif
|
||||
|
||||
# Disable ld.gold on s390 as it does not have it.
|
||||
# Also for aarch64 as the support is in upstream, but not packaged in Fedora.
|
||||
mkdir -p %{_target_platform}
|
||||
|
@ -205,10 +211,10 @@ pushd %{_target_platform}
|
|||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DENABLE_GTKDOC=ON \
|
||||
-DENABLE_MINIBROWSER=ON \
|
||||
%ifarch s390 aarch64
|
||||
%ifarch s390 aarch64 riscv64
|
||||
-DUSE_LD_GOLD=OFF \
|
||||
%endif
|
||||
%ifarch s390 s390x ppc %{power64}
|
||||
%ifarch s390 s390x ppc %{power64} riscv64
|
||||
-DENABLE_JIT=OFF \
|
||||
-DUSE_SYSTEM_MALLOC=ON \
|
||||
%endif
|
||||
|
@ -292,6 +298,9 @@ make %{?_smp_mflags} -C %{_target_platform}
|
|||
%{_datadir}/gtk-doc/html/webkitdomgtk-4.0/
|
||||
|
||||
%changelog
|
||||
* Fri May 25 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 2.21.2-2.0.riscv64
|
||||
- Add support for RISC-V (riscv64)
|
||||
|
||||
* Thu May 24 2018 Tomas Popela <tpopela@redhat.com> - 2.21.2-2
|
||||
- Explicitly specify python2 over python and add python2 to BR
|
||||
|
||||
|
|
Loading…
Reference in New Issue