mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
toolchain.eclass: Don't prefixify dynamic linker for cross-compilers
Cross environments within a prefixed system do not have a nested prefix,
i.e. they are located at ${EPREFIX}/usr/${CHOST}, not
${EPREFIX}/usr/${CHOST}/${EPREFIX}. Binaries built with the
cross-compiler should therefore get an unprefixed dynamic linker path by
default so that they work out of the box with QEMU's -L option.
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
@@ -721,7 +721,7 @@ toolchain_src_prepare() {
|
||||
|
||||
gnuconfig_update
|
||||
|
||||
if ! use prefix-guest && [[ -n ${EPREFIX} ]] ; then
|
||||
if ! is_crosscompile && ! use prefix-guest && [[ -n ${EPREFIX} ]] ; then
|
||||
einfo "Prefixifying dynamic linkers..."
|
||||
for f in gcc/config/*/*linux*.h ; do
|
||||
ebegin " Updating ${f}"
|
||||
|
||||
Reference in New Issue
Block a user