sagitter pushed to icecat (master). "Disable optimization flags (when GCC5 compiles) on ARM"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Apr 9 09:28:39 UTC 2015


>From bbd181800b6a6eef03e02f7321919e8194720378 Mon Sep 17 00:00:00 2001
From: sagitter <sagitter at fedoraproject.org>
Date: Thu, 9 Apr 2015 11:28:24 +0200
Subject: Disable optimization flags (when GCC5 compiles) on ARM


diff --git a/icecat.spec b/icecat.spec
index 308259c..e1c126d 100644
--- a/icecat.spec
+++ b/icecat.spec
@@ -11,7 +11,7 @@
 
 Name:    icecat
 Version: 31.6.0
-Release: 3%{?dist}
+Release: 4%{?dist}
 Summary: GNU version of Firefox browser
 Group:   Applications/Internet
 
@@ -227,7 +227,7 @@ SETOPT_FLAGS=$(echo "$RPM_OPT_FLAGS" | sed -e 's/-Wall//g' -e 's/-fexceptions//g
 MOZ_OPT_FLAGS="$SETOPT_FLAGS -Wformat-security -Wformat -Werror=format-security"
 
 %ifarch s390
-MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | sed -e 's/-g/-g1/')
+MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | sed -e 's/-g/-g1/' )
 %endif
 
 MOZ_SMP_FLAGS=-j1
@@ -248,7 +248,13 @@ mkdir -p %{name}-objdir && cd %{name}-objdir
  --includedir=%{_includedir} \
  --datadir=%{_datadir} \
  --mandir=%{_mandir} \
+%if 0%{?fedora} > 21
+%ifarch %{arm}
+ --disable-optimize \
+%else
  --enable-optimize="$MOZ_OPT_FLAGS" \
+%endif
+%endif
  --with-system-nspr \
  --with-system-nss \
  --with-system-nspr-prefix=%{_bindir} \
@@ -279,9 +285,6 @@ mkdir -p %{name}-objdir && cd %{name}-objdir
 
 %ifarch s390 %{arm} ppc aarch64
 MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
-%if 0%{?fedora} > 21
-export CPPFLAGS=" -mno-avx"
-%endif
 %endif
 export LDFLAGS="$MOZ_LINK_FLAGS"
 
@@ -380,6 +383,9 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{icecat_ver}.desk
 %{_includedir}/%{icecat_ver}/
 
 %changelog
+* Tue Apr 07 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.6.0-4
+- Disable optimization flags (when GCC5 compiles) on ARM
+
 * Tue Apr 07 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.6.0-3
 - Compiled against bundle libvpx-1.3.0
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/icecat.git/commit/?h=master&id=bbd181800b6a6eef03e02f7321919e8194720378


More information about the scm-commits mailing list