From 44b31ba5436981a2f8b4a08b97f588d0ce38576f Mon Sep 17 00:00:00 2001 From: FrantiĊĦek Zatloukal Date: Feb 14 2019 11:59:53 +0000 Subject: Build aarch64 with -O0 --- diff --git a/mozjs60.spec b/mozjs60.spec index 81e767d..03403c9 100644 --- a/mozjs60.spec +++ b/mozjs60.spec @@ -12,7 +12,7 @@ Name: mozjs%{major} Version: 60.4.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: SpiderMonkey JavaScript library License: MPLv2.0 and MPLv1.1 and BSD and GPLv2+ and GPLv3+ and LGPLv2+ and AFL and ASL 2.0 @@ -96,6 +96,12 @@ rm -rf ../../modules/zlib %build # Disable null pointer gcc6 optimization in gcc6 (rhbz#1328045) export CFLAGS="%{optflags} -fno-tree-vrp -fno-strict-aliasing -fno-delete-null-pointer-checks" + +# Use O0 on aarch64 to fix FTBFS (rhbz#1676292) +%ifarch aarch64 +export CFLAGS=$(echo "$CFLAGS" | sed 's/O2/O0/g') +%endif + export CXXFLAGS="$CFLAGS" export LINKFLAGS="%{?__global_ldflags}" export PYTHON="%{__python2}" @@ -171,6 +177,9 @@ ln -s libmozjs-%{major}.so.0 %{buildroot}%{_libdir}/libmozjs-%{major}.so %{_includedir}/mozjs-%{major}/ %changelog +* Thu Feb 14 2019 Frantisek Zatloukal - 60.4.0-3 +- Build aarch64 with -O0 because of rhbz#1676292 + * Fri Feb 01 2019 Fedora Release Engineering - 60.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild