nios2: FreeBSD clang needs gnu89 to build gcc.

This commit is contained in:
Chris Johns 2016-09-03 11:45:59 +10:00
parent 3b93640ed7
commit 60e8ddf650

View File

@ -102,6 +102,12 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
%{host_build_flags}
#
# On FreeBSD clang needs to be wind back in time to build gcc
#
%if %{_build_os} == freebsd
CC="${CC} -std=gnu89" \
%endif
../${source_dir_gcc}/configure \
--prefix=%{_prefix} \
--bindir=%{_bindir} \