gcc: add alternatives group for cc

[ci skip]
This commit is contained in:
Johannes Brechtmann 2018-04-20 23:04:54 +02:00 committed by Toyam Cox
parent f391487c27
commit b9daff32a5

View file

@ -7,7 +7,7 @@ _isl_version=0.16.1
pkgname=gcc pkgname=gcc
version=${_majorver}.0 version=${_majorver}.0
revision=2 revision=3
short_desc="The GNU C Compiler" short_desc="The GNU C Compiler"
maintainer="Juan RP <xtraeme@voidlinux.eu>" maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://gcc.gnu.org" homepage="http://gcc.gnu.org"
@ -29,6 +29,7 @@ nopie=yes
lib32disabled=yes lib32disabled=yes
bootstrap=yes bootstrap=yes
replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0" replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0"
alternatives="cc:cc:/usr/bin/gcc"
if [ "$CHROOT_READY" ]; then if [ "$CHROOT_READY" ]; then
hostmakedepends="perl flex" hostmakedepends="perl flex"
@ -252,8 +253,6 @@ do_install() {
ln -sfr ${DESTDIR}/usr/include/c++/${_majorver} \ ln -sfr ${DESTDIR}/usr/include/c++/${_majorver} \
${DESTDIR}/usr/include/c++/${version} ${DESTDIR}/usr/include/c++/${version}
# cc symlink.
ln -sfr ${DESTDIR}/usr/bin/gcc ${DESTDIR}/usr/bin/cc
# rpcgen wants /lib/cpp, make a symlink # rpcgen wants /lib/cpp, make a symlink
ln -sfr ${DESTDIR}/usr/bin/cpp ${DESTDIR}/usr/lib/cpp ln -sfr ${DESTDIR}/usr/bin/cpp ${DESTDIR}/usr/lib/cpp