eclass/toolchain: Sync with Gentoo

It's from Gentoo commit c7082538536c5fceab8d67da2365a938391c0d94.
This commit is contained in:
Flatcar Buildbot 2024-10-21 07:07:28 +00:00
parent c4fbf97990
commit f9f86b02ff

View File

@ -11,14 +11,14 @@
# GNAT for Ada). If not building GCC itself, please use toolchain-funcs.eclass # GNAT for Ada). If not building GCC itself, please use toolchain-funcs.eclass
# instead. # instead.
if [[ -z ${_TOOLCHAIN_ECLASS} ]]; then
_TOOLCHAIN_ECLASS=1
case ${EAPI} in case ${EAPI} in
7|8) ;; 7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac esac
if [[ -z ${_TOOLCHAIN_ECLASS} ]]; then
_TOOLCHAIN_ECLASS=1
DESCRIPTION="The GNU Compiler Collection" DESCRIPTION="The GNU Compiler Collection"
HOMEPAGE="https://gcc.gnu.org/" HOMEPAGE="https://gcc.gnu.org/"
@ -2647,7 +2647,7 @@ fix_libtool_libdir_paths() {
pushd "${D}" >/dev/null || die pushd "${D}" >/dev/null || die
pushd "./${libpath}" >/dev/null || die pushd "./${libpath}" >/dev/null || die
local dir="${PWD#${D%/}}" local dir="${PWD#${D}}"
local allarchives=$(echo *.la) local allarchives=$(echo *.la)
allarchives="\(${allarchives// /\\|}\)" allarchives="\(${allarchives// /\\|}\)"
popd >/dev/null || die popd >/dev/null || die