!35 fix build error for loongarch64
From: @zhangwenlong01 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
a62cbe6421
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: texlive-base
|
Name: texlive-base
|
||||||
Version: 20210325
|
Version: 20210325
|
||||||
Release: 4
|
Release: 5
|
||||||
Epoch: 9
|
Epoch: 9
|
||||||
Summary: TeX formatting system
|
Summary: TeX formatting system
|
||||||
License: ASL 2.0 and LGPL-2.1-only and Zlib and OFL-1.1 and Public Domain and LGPL-2.0-only and GPLv2+ and MPL-1.1 and Libpng and LGPL-3.0-only and BSL-1.0 and GPLv2 and GPLv3 and CPL-1.0 and IJG and MIT and LPPL-1.3c and ICU and psutils
|
License: ASL 2.0 and LGPL-2.1-only and Zlib and OFL-1.1 and Public Domain and LGPL-2.0-only and GPLv2+ and MPL-1.1 and Libpng and LGPL-3.0-only and BSL-1.0 and GPLv2 and GPLv3 and CPL-1.0 and IJG and MIT and LPPL-1.3c and ICU and psutils
|
||||||
@ -6148,8 +6148,13 @@ done
|
|||||||
%global mysources %{lua: for index,value in ipairs(sources) do if index >= 16 then print(value.." ") end end}
|
%global mysources %{lua: for index,value in ipairs(sources) do if index >= 16 then print(value.." ") end end}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%ifarch loongarch64
|
||||||
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fcommon"
|
||||||
|
export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11 -fno-strict-aliasing -fcommon"
|
||||||
|
%else
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Werror=format-security -fcommon"
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Werror=format-security -fcommon"
|
||||||
export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11 -fno-strict-aliasing -Werror=format-security -fcommon"
|
export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11 -fno-strict-aliasing -Werror=format-security -fcommon"
|
||||||
|
%endif
|
||||||
export LDFLAGS="%{build_ldflags}"
|
export LDFLAGS="%{build_ldflags}"
|
||||||
cd source
|
cd source
|
||||||
PREF=`pwd`/inst
|
PREF=`pwd`/inst
|
||||||
@ -6165,7 +6170,7 @@ cd work
|
|||||||
--enable-shared --enable-compiler-warnings=max --without-cxx-runtime-hack \
|
--enable-shared --enable-compiler-warnings=max --without-cxx-runtime-hack \
|
||||||
--disable-native-texlive-build --disable-t1utils --disable-psutils --disable-biber --disable-ptexenc --disable-largefile \
|
--disable-native-texlive-build --disable-t1utils --disable-psutils --disable-biber --disable-ptexenc --disable-largefile \
|
||||||
--disable-xindy --disable-xindy-docs --disable-xindy-make-rules \
|
--disable-xindy --disable-xindy-docs --disable-xindy-make-rules \
|
||||||
%ifarch aarch64 riscv64
|
%ifarch aarch64 riscv64 loongarch64
|
||||||
--disable-luajittex --disable-mfluajit --disable-luajithbtex --disable-mfluajit-nowin \
|
--disable-luajittex --disable-mfluajit --disable-luajithbtex --disable-mfluajit-nowin \
|
||||||
%endif
|
%endif
|
||||||
--disable-rpath
|
--disable-rpath
|
||||||
@ -6349,7 +6354,7 @@ for i in afm2pl afm2tfm aleph bibtex bibtex8 bibtexu chkdvifont chktex ctie ctan
|
|||||||
chrpath --delete %{buildroot}%{_bindir}/$i
|
chrpath --delete %{buildroot}%{_bindir}/$i
|
||||||
done
|
done
|
||||||
|
|
||||||
%ifnarch aarch64 riscv64
|
%ifnarch aarch64 riscv64 loongarch64
|
||||||
for i in luajittex luajithbtex mfluajit;do
|
for i in luajittex luajithbtex mfluajit;do
|
||||||
chrpath --delete %{buildroot}%{_bindir}/$i
|
chrpath --delete %{buildroot}%{_bindir}/$i
|
||||||
done
|
done
|
||||||
@ -7518,7 +7523,7 @@ yes | %{_bindir}/updmap-sys --quiet --syncwithtrees >/dev/null 2>&1 || :
|
|||||||
%{_includedir}/kpathsea/*
|
%{_includedir}/kpathsea/*
|
||||||
%{_includedir}/synctex/
|
%{_includedir}/synctex/
|
||||||
%{_includedir}/texlua53/
|
%{_includedir}/texlua53/
|
||||||
%ifnarch aarch64 riscv64
|
%ifnarch aarch64 riscv64 loongarch64
|
||||||
%{_includedir}/texluajit/
|
%{_includedir}/texluajit/
|
||||||
%endif
|
%endif
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
@ -7594,7 +7599,7 @@ yes | %{_bindir}/updmap-sys --quiet --syncwithtrees >/dev/null 2>&1 || :
|
|||||||
|
|
||||||
%files -n texlive-luajittex
|
%files -n texlive-luajittex
|
||||||
%license gpl2.txt
|
%license gpl2.txt
|
||||||
%ifnarch aarch64 riscv64
|
%ifnarch aarch64 riscv64 loongarch64
|
||||||
%{_bindir}/luajittex
|
%{_bindir}/luajittex
|
||||||
%{_bindir}/luajithbtex
|
%{_bindir}/luajithbtex
|
||||||
%{_bindir}/texluajit
|
%{_bindir}/texluajit
|
||||||
@ -7713,7 +7718,7 @@ yes | %{_bindir}/updmap-sys --quiet --syncwithtrees >/dev/null 2>&1 || :
|
|||||||
%license gpl2.txt
|
%license gpl2.txt
|
||||||
%{_bindir}/mflua
|
%{_bindir}/mflua
|
||||||
%{_bindir}/mflua-nowin
|
%{_bindir}/mflua-nowin
|
||||||
%ifnarch aarch64 riscv64
|
%ifnarch aarch64 riscv64 loongarch64
|
||||||
%{_bindir}/mfluajit
|
%{_bindir}/mfluajit
|
||||||
%{_bindir}/mfluajit-nowin
|
%{_bindir}/mfluajit-nowin
|
||||||
%endif
|
%endif
|
||||||
@ -8646,6 +8651,9 @@ yes | %{_bindir}/updmap-sys --quiet --syncwithtrees >/dev/null 2>&1 || :
|
|||||||
%doc %{_datadir}/texlive/texmf-dist/doc/latex/yplan/
|
%doc %{_datadir}/texlive/texmf-dist/doc/latex/yplan/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Mar 4 2023 Wenlong Zhang <zhangwenlong@loongson.cn> - 9:20210325-5
|
||||||
|
- fix build error for loongarch64
|
||||||
|
|
||||||
* Sat Feb 18 2023 xu_ping <xu_ping33@h-partners.com> - 9:20210325-4
|
* Sat Feb 18 2023 xu_ping <xu_ping33@h-partners.com> - 9:20210325-4
|
||||||
- Remove rpath
|
- Remove rpath
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user