diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-03 22:54:31 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-03 22:54:31 +0100 |
commit | b0ebd12de22226fd7b69140ccd700efda3eb5fa6 (patch) | |
tree | efcf8d59607e53b8bf2fb453629b05bea28cc3ce /eclass/toolchain.eclass | |
parent | 99547b97ff461f107e03ed5323b6286a66677bce (diff) |
gentoo auto-resync : 03:08:2023 - 22:54:30
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index edd4c89bb00a..cf6cb158a3b3 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -614,14 +614,11 @@ toolchain_src_prepare() { done fi - # >=gcc-4 - if [[ -x contrib/gcc_update ]] ; then - einfo "Touching generated files" - ./contrib/gcc_update --touch | \ - while read f ; do - einfo " ${f%%...}" - done - fi + einfo "Touching generated files" + ./contrib/gcc_update --touch | \ + while read f ; do + einfo " ${f%%...}" + done } do_gcc_gentoo_patches() { @@ -742,16 +739,10 @@ setup_multilib_osdirnames() { config+="/t-linux64" local sed_args=() - if tc_version_is_at_least 4.6 ; then - sed_args+=( -e 's:$[(]call if_multiarch[^)]*[)]::g' ) - fi + sed_args+=( -e 's:$[(]call if_multiarch[^)]*[)]::g' ) if [[ ${SYMLINK_LIB} == "yes" ]] ; then einfo "Updating multilib directories to be: ${libdirs}" - if tc_version_is_at_least 4.6.4 || tc_version_is_at_least 4.7 ; then - sed_args+=( -e '/^MULTILIB_OSDIRNAMES.*lib32/s:[$][(]if.*):../lib32:' ) - else - sed_args+=( -e "/^MULTILIB_OSDIRNAMES/s:=.*:= ${libdirs}:" ) - fi + sed_args+=( -e '/^MULTILIB_OSDIRNAMES.*lib32/s:[$][(]if.*):../lib32:' ) else einfo "Using upstream multilib; disabling lib32 autodetection" sed_args+=( -r -e 's:[$][(]if.*,(.*)[)]:\1:' ) @@ -869,8 +860,7 @@ toolchain_src_configure() { # - After discussing in #gcc, we concluded that =yes,extra,rtl makes # more sense when a user explicitly requests USE=debug. If rtl is too slow, # we can change this to yes,extra. - local off=$(tc_version_is_at_least 4.0 && echo release || echo no) - confgcc+=( --enable-checking="${GCC_CHECKS_LIST:-$(usex debug yes,extra,rtl ${off})}" ) + confgcc+=( --enable-checking="${GCC_CHECKS_LIST:-$(usex debug yes,extra,rtl release)}" ) fi fi @@ -1879,7 +1869,7 @@ toolchain_src_install() { if ! is_crosscompile; then # Rename the main go binaries as we don't want to clobber dev-lang/go # when gcc-config runs. bug #567806 - if tc_version_is_at_least 5 && is_go ; then + if is_go ; then for x in go gofmt; do mv ${x} ${x}-${GCCMAJOR} || die done |