From 90c49f508907655dc2cdc1054303e93e0864d37b Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 5 Sep 2016 10:15:20 +1000 Subject: m32c: Disable iconv and use gn89 with clang on FreeBSD. --- rtems/config/4.10/rtems-m32c.bset | 5 +++++ rtems/config/tools/rtems-binutils-2.20.1-1.cfg | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/rtems/config/4.10/rtems-m32c.bset b/rtems/config/4.10/rtems-m32c.bset index 9a2eaeb..2b96424 100644 --- a/rtems/config/4.10/rtems-m32c.bset +++ b/rtems/config/4.10/rtems-m32c.bset @@ -8,6 +8,11 @@ %define enable_cxx 0 %define rtems_cxx 0 +# +# Disable building iconv. +# +%define with_iconv 0 + %define release 1 %define rtems_arch m32c %include 4.10/rtems-defaults.bset diff --git a/rtems/config/tools/rtems-binutils-2.20.1-1.cfg b/rtems/config/tools/rtems-binutils-2.20.1-1.cfg index 1e2fee3..f077fb8 100644 --- a/rtems/config/tools/rtems-binutils-2.20.1-1.cfg +++ b/rtems/config/tools/rtems-binutils-2.20.1-1.cfg @@ -5,6 +5,13 @@ %include %{_configdir}/checks.cfg %include %{_configdir}/base.cfg +# +# Force the standard of C code for GCC. +# +%if %{_build_os} == freebsd + %define build_cflags %{build_cflags} --std=gnu89 -Wno-return-type +%endif + %define binutils_version 2.20.1 %hash md5 binutils-%{binutils_version}.tar.bz2 2b9dc8f2b7dbd5ec5992c6e29de0b764 -- cgit v1.2.3