mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
toolchain.eclass: stop installing /usr/bin/c89 and /usr/bin/c99
Ownership of /usr/bin/c89 and /usr/bin/c99 was switched to sys-devel/gcc-config-2.3.1. Closes: https://bugs.gentoo.org/728722 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
# Call the appropriate C compiler with options to accept ANSI/ISO C
|
||||
# The following options are the same (as of gcc-2.95):
|
||||
# -ansi
|
||||
# -std=c89
|
||||
# -std=iso9899:1990
|
||||
|
||||
for i; do
|
||||
case "$i" in
|
||||
-ansi|-std=c89|-std=iso9899:1990)
|
||||
;;
|
||||
-std=*)
|
||||
echo >&2 "`basename $0` called with non ANSI/ISO C90 option $i"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
exec gcc -std=c89 -pedantic -U_FORTIFY_SOURCE "$@"
|
||||
@@ -1,21 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
# Call the appropriate C compiler with options to accept ANSI/ISO C
|
||||
# The following options are the same (as of gcc-3.3):
|
||||
# -std=c99
|
||||
# -std=c9x
|
||||
# -std=iso9899:1999
|
||||
# -std=iso9899:199x
|
||||
|
||||
for i; do
|
||||
case "$i" in
|
||||
-std=c9[9x]|-std=iso9899:199[9x])
|
||||
;;
|
||||
-ansi|-std=*)
|
||||
echo >&2 "`basename $0` called with non ANSI/ISO C99 option $i"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
exec gcc -std=c99 -pedantic -U_FORTIFY_SOURCE ${1+"$@"}
|
||||
@@ -1785,11 +1785,6 @@ toolchain_src_install() {
|
||||
# prune empty dirs left behind
|
||||
find "${ED}" -depth -type d -delete 2>/dev/null
|
||||
|
||||
if ! is_crosscompile && [[ ${PN} != "kgcc64" ]] ; then
|
||||
exeinto "${DATAPATH#${EPREFIX}}"
|
||||
doexe "${FILESDIR}"/c{89,99} || die
|
||||
fi
|
||||
|
||||
# libstdc++.la: Delete as it doesn't add anything useful: g++ itself
|
||||
# handles linkage correctly in the dynamic & static case. It also just
|
||||
# causes us pain: any C++ progs/libs linking with libtool will gain a
|
||||
@@ -2096,11 +2091,6 @@ toolchain_pkg_postinst() {
|
||||
rm -f "${EROOT%/}"/sbin/fix_libtool_files.sh
|
||||
rm -f "${EROOT%/}"/usr/sbin/fix_libtool_files.sh
|
||||
rm -f "${EROOT%/}"/usr/share/gcc-data/fixlafiles.awk
|
||||
|
||||
mkdir -p "${EROOT%/}"/usr/bin
|
||||
# Since these aren't critical files and portage sucks with
|
||||
# handling of binpkgs, don't require these to be found
|
||||
cp "${ROOT%/}${DATAPATH}"/c{89,99} "${EROOT%/}"/usr/bin/ 2>/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -2110,11 +2100,6 @@ toolchain_pkg_postrm() {
|
||||
eselect compiler-shadow clean all
|
||||
fi
|
||||
|
||||
# to make our lives easier (and saner), we do the fix_libtool stuff here.
|
||||
# rather than checking SLOT's and trying in upgrade paths, we just see if
|
||||
# the common libstdc++.la exists in the ${LIBPATH} of the gcc that we are
|
||||
# unmerging. if it does, that means this was a simple re-emerge.
|
||||
|
||||
# clean up the cruft left behind by cross-compilers
|
||||
if is_crosscompile ; then
|
||||
if [[ -z $(ls "${EROOT%/}"/etc/env.d/gcc/${CTARGET}* 2>/dev/null) ]] ; then
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
# Call the appropriate C compiler with options to accept ANSI/ISO C
|
||||
# The following options are the same (as of gcc-2.95):
|
||||
# -ansi
|
||||
# -std=c89
|
||||
# -std=iso9899:1990
|
||||
|
||||
for i; do
|
||||
case "$i" in
|
||||
-ansi|-std=c89|-std=iso9899:1990)
|
||||
;;
|
||||
-std=*)
|
||||
echo >&2 "`basename $0` called with non ANSI/ISO C90 option $i"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
exec gcc -std=c89 -pedantic -U_FORTIFY_SOURCE "$@"
|
||||
@@ -1,21 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
# Call the appropriate C compiler with options to accept ANSI/ISO C
|
||||
# The following options are the same (as of gcc-3.3):
|
||||
# -std=c99
|
||||
# -std=c9x
|
||||
# -std=iso9899:1999
|
||||
# -std=iso9899:199x
|
||||
|
||||
for i; do
|
||||
case "$i" in
|
||||
-std=c9[9x]|-std=iso9899:199[9x])
|
||||
;;
|
||||
-ansi|-std=*)
|
||||
echo >&2 "`basename $0` called with non ANSI/ISO C99 option $i"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
exec gcc -std=c99 -pedantic -U_FORTIFY_SOURCE ${1+"$@"}
|
||||
Reference in New Issue
Block a user