Skip to content

Commit

Permalink
Add workaround for libtool
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyD committed Mar 6, 2010
1 parent 5e61eaa commit ae83e66
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bin/ebuild.sh
Expand Up @@ -1159,8 +1159,13 @@ dyn_install() {
is_ebuild && unset_abi
done
if [[ -d "${D}" ]]; then
find "${D}" -name '*.la' ! -exec grep -q shouldnotlink=yes {} \; -exec rm {} \;
/usr/bin/lafilefixer "${D}"
if [[ "${CATEGORY}/${PN}" == "sys-devel/libtool" ]] ; then
ewarn "Preserving libltdl.la because of extensive usage"
ewarn "even in m4 macros of libtool"
else
find "${D}" -name '*.la' ! -exec grep -q shouldnotlink=yes {} \; -exec rm {} \;
/usr/bin/lafilefixer "${D}"
fi

touch "${PORTAGE_BUILDDIR}"/.installed || die "IO Failure -- Failed 'touch .installed' in ${PORTAGE_BUILDDIR}"
vecho ">>> Completed installing ${PF} into ${D}"
Expand Down

0 comments on commit ae83e66

Please sign in to comment.