summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rtems/config/tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg6
1 files changed, 6 insertions, 0 deletions
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} \