summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-09-03 11:45:59 +1000
committerChris Johns <chrisj@rtems.org>2016-09-03 11:45:59 +1000
commit60e8ddf650874dc1153e8484da7e70124ad70ac6 (patch)
treece5dd543cdf69cb25ef53dd6cdc7650d49ad8107
parentnios2: Switch to gdb-7.11. (diff)
downloadrtems-source-builder-60e8ddf650874dc1153e8484da7e70124ad70ac6.tar.bz2
nios2: FreeBSD clang needs gnu89 to build gcc.
-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} \