From 6c15240cd833a858f936fd0f7beb05475a5806a4 Mon Sep 17 00:00:00 2001 From: yxliu Date: Thu, 25 Nov 2021 16:02:50 +0800 Subject: [PATCH] build: support loongarch64 Signed-off-by: yxliu --- texlive.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/texlive.spec b/texlive.spec index ba0bc1b1..b5420764 100755 --- a/texlive.spec +++ b/texlive.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 %define _legacy_common_support 1 %global tl_epoch 7 %global source_date 20180414 @@ -23800,8 +23800,13 @@ done %build +%ifarch loongarch64 +export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" +export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11 -fno-strict-aliasing" +%else export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Werror=format-security" export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11 -fno-strict-aliasing -Werror=format-security" +%endif %if 0%{?fedora} >= 28 || 0%{?rhel} >= 8 export LDFLAGS="%{build_ldflags}" %endif @@ -23838,8 +23843,10 @@ cd work --with-system-potrace \ --with-pic \ --with-xdvi-x-toolkit=xaw \ +%ifnarch loongarch64 --with-system-mpfr \ --with-system-gmp \ +%endif --disable-xindy \ --disable-xindy-docs \ --disable-xindy-make-rules \ @@ -23853,7 +23860,7 @@ cd work --disable-biber \ --disable-ptexenc \ --disable-largefile \ - %ifarch aarch64 %{mips} %{power64} s390 s390x + %ifarch aarch64 %{mips} %{power64} s390 s390x loongarch64 --disable-luajittex \ --disable-mfluajit \ %endif @@ -23920,7 +23927,7 @@ popd # drop i386-linux packages so we need to make symlinks manuall # luatex -%ifnarch aarch64 %{mips} %{power64} s390 s390x +%ifnarch aarch64 %{mips} %{power64} s390 s390x loongarch64 pushd %{buildroot}%{_bindir} for f in texluajit texluajitc ; do ln -fs luajittex $f @@ -25453,7 +25460,7 @@ fi %files luatex %license gpl2.txt %{_bindir}/dviluatex -%ifnarch aarch64 %{mips} %{power64} s390 s390x +%ifnarch aarch64 %{mips} %{power64} s390 s390x loongarch64 %{_bindir}/luajittex %{_bindir}/texluajit %{_bindir}/texluajitc @@ -26850,7 +26857,7 @@ fi %{_includedir}/synctex/ %{_includedir}/texlua52/ %{_includedir}/texlua53/ -%ifnarch aarch64 %{mips} %{power64} s390 s390x +%ifnarch aarch64 %{mips} %{power64} s390 s390x loongarch64 %{_includedir}/texluajit/ %endif %{_libdir}/*.so @@ -27192,6 +27199,9 @@ fi %doc %{_texdir}/texmf-dist/doc/context/ %changelog +* Wed Feb 23 2022 Weitao Zhou - 7:20180414-23.0.2 +- anolis texlive add loongarch64(Yaxuan Liu) + * Thu Jan 20 2022 Weitao Zhou - 7:20180414-23.0.1 - Fix gcc10 -fno-common compile issue for compatible with gcc10 build -- Gitee