From 66afdc6140f557d35e6ace395a65b3feeb29cac7 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 22 Sep 2016 13:20:25 +0200 Subject: [PATCH] Resolves: #1377795 Add MIPS support. Based on a patch from Michal Toman . --- glibc.spec | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/glibc.spec b/glibc.spec index 95c527c..4e6784c 100644 --- a/glibc.spec +++ b/glibc.spec @@ -1,6 +1,6 @@ %define glibcsrcdir glibc-2.24-163-ge299076 %define glibcversion 2.24.90 -%define glibcrelease 7%{?dist} +%define glibcrelease 8%{?dist} # Pre-release tarballs are pulled in from git using a command that is # effectively: # @@ -37,8 +37,8 @@ # Run a valgrind smoke test to ensure that the release is compatible and # doesn't any new feature that might cause valgrind to abort. %if %{with valgrind} -%ifarch s390 ppc64 ppc64p7 -# There is no valgrind support for 31-bit s390. +%ifarch s390 ppc64 ppc64p7 %{mips} +# There is no valgrind support for 31-bit s390, nor for MIPS. # The valgrind test does not work on ppc64, ppc64p7 (bug 1273103). %undefine with_valgrind %endif @@ -995,6 +995,17 @@ core_with_options="--with-cpu=power8" %endif %endif +############################################################################## +# %%build - MIPS options. +############################################################################## +%ifarch mips mipsel +BuildFlags="-march=mips32r2 -mfpxx" +%endif +%ifarch mips64 mips64el +# Without -mrelax-pic-calls ld.so segfaults when built with -O3 +BuildFlags="-march=mips64r2 -mabi=64 -mrelax-pic-calls" +%endif + ############################################################################## # %%build - Generic options. ############################################################################## @@ -2266,6 +2277,9 @@ rm -f *.filelist* %endif %changelog +* Thu Sep 22 2016 Florian Weimer - 2.24.90-8 +- Add support for MIPS (#1377795) + * Tue Sep 20 2016 Carlos O'Donell - 2.24.90-7 - Auto-sync with upstream master.