diff options
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/libtool.eclass | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass index 576abd3a5f..7f09f3760c 100644 --- a/eclass/libtool.eclass +++ b/eclass/libtool.eclass @@ -19,6 +19,16 @@ _LIBTOOL_ECLASS=1 DEPEND=">=app-portage/elt-patches-20170317" libtool_elt_patch_dir() { + if use prefix-chain; then + local parent parents + IFS=: eval 'parents=(${PORTAGE_READONLY_EPREFIXES})' + for parent in "${parents[@]}"; do + if [[ -d ${parent}/usr/share/elt-patches ]]; then + echo "${parent}/usr/share/elt-patches" + return 0 + fi + done + fi echo "${EPREFIX}/usr/share/elt-patches" } |