summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libpfm')
-rw-r--r--dev-libs/libpfm/libpfm-4.11.0.ebuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/dev-libs/libpfm/libpfm-4.11.0.ebuild b/dev-libs/libpfm/libpfm-4.11.0.ebuild
index 594f18ab5f6a..55e05a64d127 100644
--- a/dev-libs/libpfm/libpfm-4.11.0.ebuild
+++ b/dev-libs/libpfm/libpfm-4.11.0.ebuild
@@ -12,6 +12,7 @@ SRC_URI="mirror://sourceforge/perfmon2/${PN}4/${P}.tar.gz"
LICENSE="GPL-2 MIT"
SLOT="0/4"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+IUSE="static-libs"
src_prepare() {
default
@@ -31,8 +32,7 @@ src_install() {
emake DESTDIR="${D}" LDCONFIG=true PREFIX="${EPREFIX}/usr" install
dodoc README
- find "${ED}" -name '*.a' -delete || die
-
- # Note: dev-libs/papi uses .la files to detect this package, so
- # don't remove them.
+ if ! use static-libs ; then
+ find "${ED}" -name '*.la' -delete || die
+ fi
}