# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Compatibility with LSB (Linux Standard Base) for binary programs"

LICENSE="libstdc++"
SLOT="3"
KEYWORDS="x86 amd64"

RDEPEND="sys-libs/glibc:2.2
	<sys-libs/glibc-2.33"
DEPEND="${RDEPEND}"

S=${WORKDIR}

src_install() {
    if use amd64 ; then
	insinto /lib64
	dosym ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.${SLOT}
    fi
    # both amd64 and x86:
    insinto /lib
    dosym ld-linux.so.2 /lib/ld-lsb.so.${SLOT}
}