From d0ee623b3973fca04a982ec04088cb4876dda7d6 Mon Sep 17 00:00:00 2001 From: Johnny Hughes Date: May 21 2018 15:25:49 +0000 Subject: mod to build on armhfp --- diff --git a/SPECS/gcc-libraries.spec b/SPECS/gcc-libraries.spec index 18bb4c8..eb6b499 100644 --- a/SPECS/gcc-libraries.spec +++ b/SPECS/gcc-libraries.spec @@ -143,7 +143,7 @@ BuildRequires: libmpc-devel >= 0.8.1 %endif Requires(post): /sbin/install-info Requires(preun): /sbin/install-info -ExclusiveArch: %{ix86} x86_64 ppc ppc64 ppc64le s390 s390x aarch64 +ExclusiveArch: %{ix86} x86_64 ppc ppc64 ppc64le s390 s390x aarch64 %{arm} %global oformat %{nil} %global oformat2 %{nil} @@ -175,6 +175,9 @@ ExclusiveArch: %{ix86} x86_64 ppc ppc64 ppc64le s390 s390x aarch64 %ifarch ppc64le %global oformat OUTPUT_FORMAT(elf64-powerpcle) %endif +%ifarch %{arm} +%global oformat OUTPUT_FORMAT(elf32-littlearm) +%endif Patch0: gcc7-hack.patch Patch1: gcc7-ppc32-retaddr.patch @@ -204,7 +207,9 @@ Patch2001: 0022-Default-values-for-certain-field-descriptors-in-form.patch %global nonsharedver 44 %endif +%ifnarch %{arm} %global _gnu %{nil} +%endif %ifarch sparcv9 %global gcc_target_platform sparc64-%{_vendor}-%{_target_os}%{?_gnu} %endif @@ -462,6 +467,10 @@ CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \ %ifarch s390 s390x --with-arch=z9-109 --with-tune=z10 --enable-decimal-float \ %endif +%ifarch armv7hl + --with-tune=cortex-a8 --with-arch=armv7-a \ + --with-float=hard --with-fpu=vfpv3-d16 --with-abi=aapcs-linux \ +%endif %ifnarch sparc sparcv9 ppc --build=%{gcc_target_platform} %endif @@ -687,6 +696,9 @@ fi %doc gcc/COPYING3 COPYING.RUNTIME rpm.doc/gfortran/* %changelog +* Mon May 14 2018 Pablo Greco 7.2.1-1.2.1 +- Update to build on armv7hl + * Thu Apr 5 2018 Marek Polacek 7.2.1-1.2.1 - Add support for DEC formatting extensions (#1564043)