From 60e8ddf650874dc1153e8484da7e70124ad70ac6 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Sat, 3 Sep 2016 11:45:59 +1000 Subject: nios2: FreeBSD clang needs gnu89 to build gcc. --- rtems/config/tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rtems/config/tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg b/rtems/config/tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg index 155a688..0997f76 100644 --- a/rtems/config/tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg +++ b/rtems/config/tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg @@ -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} \ -- cgit v1.2.3