diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-01-29 00:51:18 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-01-29 00:51:18 +0000 |
| commit | c2ee96b0307df455d970dd1926c8652909ba767c (patch) | |
| tree | 5d8d13e2bbc6fe9003b2ec96a94d0e2f501b2987 /eclass/usr-ldscript.eclass | |
| parent | c727ef413bd99c61e1775c18e542a4018b6743a7 (diff) | |
| download | baldeagleos-repo-c2ee96b0307df455d970dd1926c8652909ba767c.tar.gz baldeagleos-repo-c2ee96b0307df455d970dd1926c8652909ba767c.tar.xz baldeagleos-repo-c2ee96b0307df455d970dd1926c8652909ba767c.zip | |
Adding metadata
Diffstat (limited to 'eclass/usr-ldscript.eclass')
| -rw-r--r-- | eclass/usr-ldscript.eclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/usr-ldscript.eclass b/eclass/usr-ldscript.eclass index b73d538ae5bb..6dbce59c6400 100644 --- a/eclass/usr-ldscript.eclass +++ b/eclass/usr-ldscript.eclass @@ -39,6 +39,13 @@ gen_usr_ldscript() { tc-is-static-only && return use prefix && return + # The toolchain's sysroot is automatically prepended to paths in this + # script. We therefore need to omit EPREFIX on standalone prefix (RAP) + # systems. prefix-guest (non-RAP) systems don't apply a sysroot so EPREFIX + # is still needed in that case. This is moot because the above line makes + # the function a noop on prefix, but we keep this in case that changes. + local prefix=$(usex prefix-guest "${EPREFIX}" "") + # We only care about stuffing / for the native ABI. #479448 if [[ $(type -t multilib_is_native_abi) == "function" ]] ; then multilib_is_native_abi || return 0 @@ -154,7 +161,7 @@ gen_usr_ldscript() { See bug https://bugs.gentoo.org/4411 for more info. */ ${output_format} - GROUP ( ${EPREFIX}/${libdir}/${tlib} ) + GROUP ( ${prefix}/${libdir}/${tlib} ) END_LDSCRIPT ;; esac |
