From bb232301e4b99d1e85ac72d9edd03a73dbb93b9303c8e41209d938327d98354c Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 4 Feb 2014 10:13:06 +0000 Subject: [PATCH] - Provide POSIX c99 command executing gcc -std=gnu99. [bnc#861923] - Remove gcc-z9 wrapper which is obsolete. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc?expand=0&rev=45 --- c99 | 4 ++++ gcc.changes | 6 ++++++ gcc.spec | 31 +++++-------------------------- 3 files changed, 15 insertions(+), 26 deletions(-) create mode 100644 c99 diff --git a/c99 b/c99 new file mode 100644 index 0000000..8c87d39 --- /dev/null +++ b/c99 @@ -0,0 +1,4 @@ +#!/bin/sh +# Despite asking for a c99 compiler allow GNU extensions to work +# as we are on a GNU/Linux system anyway +exec /usr/bin/c99 -xc -std=gnu99 "$@" diff --git a/gcc.changes b/gcc.changes index 1591189..ca0a390 100644 --- a/gcc.changes +++ b/gcc.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 4 10:08:54 UTC 2014 - rguenther@suse.com + +- Provide POSIX c99 command executing gcc -std=gnu99. [bnc#861923] +- Remove gcc-z9 wrapper which is obsolete. + ------------------------------------------------------------------- Mon Dec 2 15:34:27 UTC 2013 - rguenther@suse.com diff --git a/gcc.spec b/gcc.spec index 573a740..f8af99d 100644 --- a/gcc.spec +++ b/gcc.spec @@ -1,7 +1,7 @@ # # spec file for package gcc # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -334,16 +334,6 @@ Requires: gcc%{gcc_version}-ada The system GNU Ada Compiler. %endif -%package -n gcc-z9 -Summary: The system GNU C Compiler -License: GPL-3.0+ -Group: Development/Languages/C and C++ -Requires: gcc - -%description -n gcc-z9 -The system GNU C Compiler. - - %prep %build @@ -409,20 +399,15 @@ ln -sf g++-%{gcc_suffix} $RPM_BUILD_ROOT%{_prefix}/bin/c++ ln -sf gcc-%{gcc_suffix} $RPM_BUILD_ROOT%{_prefix}/bin/cc ln -sf g++-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/c++.1.gz ln -sf gcc-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/cc.1.gz -%ifarch s390 s390x -dir=`gcc-%{gcc_suffix} -print-prog-name=cc1` -dir=${dir%/cc1} -mkdir -p $RPM_BUILD_ROOT/$dir -cat > $RPM_BUILD_ROOT/$dir/defaults.spec <