From 3203bcd0346b90a0397ecc40e16008b1f0666ca6 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Sep 07 2015 09:51:41 +0000 Subject: disable -fexpensive-optimizations for aarch64 to get it build --- diff --git a/HepMC.spec b/HepMC.spec index 491e2a2..729324b 100644 --- a/HepMC.spec +++ b/HepMC.spec @@ -2,7 +2,7 @@ Name: HepMC Version: 2.06.09 -Release: 11%{?dist} +Release: 12%{?dist} Summary: C++ Event Record for Monte Carlo Generators Group: System Environment/Libraries @@ -60,6 +60,10 @@ This package provides HepMC manuals and examples. %patch5 -p1 %build +# testSimpleVector fails when built with -fexpensive-optimizations (part of -O2) +%ifarch aarch64 +export CXXFLAGS="$RPM_OPT_FLAGS -fno-expensive-optimizations" +%endif %configure --with-momentum=GEV --with-length=MM --disable-static make %{?_smp_mflags} @@ -115,6 +119,9 @@ rm -rf %{buildroot} %doc %{_pkgdocdir}/COPYING %changelog +* Thu Sep 03 2015 Marcin Juszkiewicz - 2.06.09-12 +- disable -fexpensive-optimizations for aarch64 to get it build + * Tue Jun 16 2015 Fedora Release Engineering - 2.06.09-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild