Skip to content

Instantly share code, notes, and snippets.

@kergoth
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kergoth/20620cbded1eccf769c5 to your computer and use it in GitHub Desktop.
Save kergoth/20620cbded1eccf769c5 to your computer and use it in GitHub Desktop.
# Backfill for existing distros
DISTRO_FEATURES_BACKFILL_append = " libtool-garbage"
# Drop for packaged bits only, not what ends up in our internal sysroots
PACKAGEBUILDPKGD_append = "${@bb.utils.contains('DISTRO_FEATURES', 'libtool-garbage', '', ' drop_libtool_garbage', d)}"
drop_libtool_garbage () {
find "${PKGD}" -name "*.la" -exec rm "{}" \;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment