# Conditional build:
%bcond_with bootstrap # build without NaCL newlib package dependency (without c++ package)
-%define gitver 3937565
+%define gitver 455063d
Summary: Various compilers (C, C++) for NaCl
Name: crossnacl-gcc
Version: 4.4.3
-Release: 6.git%{gitver}
+Release: 10.git%{gitver}
License: GPL v3+ and GPL v3+ with exceptions and GPL v2+ with exceptions
Group: Development/Languages
-Source0: nacl-gcc-%{version}-git%{gitver}.tar.bz2
-# Source0-md5: fcdfdd30b82d8ad8fa6e39e7e32cee64
+Source0: nacl-gcc-%{version}-git%{gitver}.tar.xz
+# Source0-md5: dd49a8726695a06c7fe9fc531dc6c637
Source1: get-source.sh
URL: http://sourceware.org/gcc/
BuildRequires: cloog-ppl-devel
BuildRequires: gmp-c++-devel
BuildRequires: gmp-devel
BuildRequires: mpfr-devel
-BuildRequires: ppl-pwl-devel
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+BuildConflicts: cloog-isl-devel
%if %{without bootstrap}
BuildRequires: crossnacl-newlib
%endif
%define gccnlib %{_prefix}/lib/gcc/%{target}/%{gcc_ver}
%define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+
+%define filterout_c -Werror=format-security
%description
The gcc package contains the GNU Compiler Collection version 4.4.3.
install -d obj-%{target}
cd obj-%{target}
-OPT_FLAGS="%{rpmcflags}"
+OPT_FLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64"
OPT_FLAGS=$(echo "$OPT_FLAGS" | sed -e 's/-m64//g;s/-m32//g;s/-m31//g')
%ifarch %{ix86}
OPT_FLAGS=$(echo "$OPT_FLAGS" | sed -e 's/-march=i.86//g')
--with-newlib \
%endif
--target=%{target} \
- --with-host-libstdcxx="-lpwl -lstdc++ -lm" \
+ --with-host-libstdcxx="-lstdc++ -lm" \
--disable-ppl-version-check \
--disable-libgcj