diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-11-04 07:53:37 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-11-04 07:53:37 +0000 |
commit | 2e34d1258597f730c3643cbe980f1361fec3cf47 (patch) | |
tree | 366054eb3f7989d23e06608d0ee425bb346fe719 /contrib | |
parent | 2008-11-03 Till Straumann <strauman@slac.stanford.edu> (diff) | |
download | rtems-2e34d1258597f730c3643cbe980f1361fec3cf47.tar.bz2 |
Filter out -std=gnu99 from CFLAGS.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/crossrpms/gcc/build.add | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/crossrpms/gcc/build.add b/contrib/crossrpms/gcc/build.add index 23ea9f9cce..3dbd9b39b0 100644 --- a/contrib/crossrpms/gcc/build.add +++ b/contrib/crossrpms/gcc/build.add @@ -32,7 +32,8 @@ CFLAGS_FOR_BUILD="-g -O2 -Wall" \ CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \ %else - CC="%{__cc} ${RPM_OPT_FLAGS}" \ +# gcc is not ready to be compiled with -std=gnu99 + CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \ %endif ../gcc-%{gcc_pkgvers}/configure \ --prefix=%{_prefix} \ |