[rtems-source-builder commit] nios2: FreeBSD clang needs gnu89 to build gcc.

Chris Johns chrisj at rtems.org
Sat Sep 3 01:46:07 UTC 2016


Module:    rtems-source-builder
Branch:    4.10
Commit:    60e8ddf650874dc1153e8484da7e70124ad70ac6
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=60e8ddf650874dc1153e8484da7e70124ad70ac6

Author:    Chris Johns <chrisj at rtems.org>
Date:      Sat Sep  3 11:45:59 2016 +1000

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} \




More information about the vc mailing list