SHA256
1
0
forked from pool/gcc

- 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
This commit is contained in:
Richard Biener 2014-02-04 10:13:06 +00:00 committed by Git OBS Bridge
parent 138a1f68b2
commit bb232301e4
3 changed files with 15 additions and 26 deletions

4
c99 Normal file
View File

@ -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 "$@"

View File

@ -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 Mon Dec 2 15:34:27 UTC 2013 - rguenther@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package gcc # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -334,16 +334,6 @@ Requires: gcc%{gcc_version}-ada
The system GNU Ada Compiler. The system GNU Ada Compiler.
%endif %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 %prep
%build %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 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 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 ln -sf gcc-%{gcc_suffix}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/cc.1.gz
%ifarch s390 s390x # Provide the POSIX c99 command
dir=`gcc-%{gcc_suffix} -print-prog-name=cc1` cp $RPM_SOURCE_DIR/c99 $RPM_BUILD_ROOT%{_prefix}/bin/
dir=${dir%/cc1} chmod 755 $RPM_BUILD_ROOT%{_prefix}/bin/c99
mkdir -p $RPM_BUILD_ROOT/$dir
cat > $RPM_BUILD_ROOT/$dir/defaults.spec <<EOF
*default_spec:
%{!mtune=*:-mtune=z10} %{!march=*:-march=z9-109}
EOF
%endif
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_prefix}/bin/gcc %{_prefix}/bin/gcc
%{_prefix}/bin/cc %{_prefix}/bin/cc
%{_prefix}/bin/c99
%{_prefix}/bin/gcov %{_prefix}/bin/gcov
%{_prefix}/bin/gcc-ar %{_prefix}/bin/gcc-ar
%{_prefix}/bin/gcc-nm %{_prefix}/bin/gcc-nm
@ -600,12 +585,6 @@ EOF
%{_prefix}/bin/gij64 %{_prefix}/bin/gij64
%{_prefix}/bin/grmiregistry64 %{_prefix}/bin/grmiregistry64
%endif
%ifarch s390 s390x
%files -n gcc-z9
%defattr(-,root,root)
/usr/lib*/gcc/*-suse-linux/*/defaults.spec
%endif %endif
%changelog %changelog