From 2e34d1258597f730c3643cbe980f1361fec3cf47 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 4 Nov 2008 07:53:37 +0000 Subject: Filter out -std=gnu99 from CFLAGS. --- contrib/crossrpms/gcc/build.add | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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} \ -- cgit v1.2.3