diff options
author | Chris Johns <chrisj@rtems.org> | 2016-09-03 11:45:59 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2016-09-03 11:45:59 +1000 |
commit | 60e8ddf650874dc1153e8484da7e70124ad70ac6 (patch) | |
tree | ce5dd543cdf69cb25ef53dd6cdc7650d49ad8107 /rtems/config/tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg | |
parent | nios2: Switch to gdb-7.11. (diff) | |
download | rtems-source-builder-60e8ddf650874dc1153e8484da7e70124ad70ac6.tar.bz2 |
nios2: FreeBSD clang needs gnu89 to build gcc.
Diffstat (limited to 'rtems/config/tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg')
-rw-r--r-- | rtems/config/tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg | 6 |
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} \ |