summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2019-04-14 00:13:07 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2019-04-14 00:13:27 +0200
commita86c7b238baf5d0bda9224f4a6bedc78ac93a0a3 (patch)
treea9946efe0dc5687442f936d4b4c0ff6e0dccbc7e /sys-libs/glibc
parentdev-python/scandir: clean up old. (diff)
downloadgentoo-a86c7b238baf5d0bda9224f4a6bedc78ac93a0a3.tar.gz
gentoo-a86c7b238baf5d0bda9224f4a6bedc78ac93a0a3.tar.bz2
gentoo-a86c7b238baf5d0bda9224f4a6bedc78ac93a0a3.zip
sys-libs/glibc: add static-libs useflag
Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'sys-libs/glibc')
-rw-r--r--sys-libs/glibc/glibc-9999.ebuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild
index ba1d5041cb74..939fdcf0e14e 100644
--- a/sys-libs/glibc/glibc-9999.ebuild
+++ b/sys-libs/glibc/glibc-9999.ebuild
@@ -35,7 +35,7 @@ PATCH_VER=11
SRC_URI+=" https://dev.gentoo.org/~slyfox/distfiles/${P}-patches-${PATCH_VER}.tar.xz"
SRC_URI+=" multilib? ( https://dev.gentoo.org/~dilfridge/distfiles/gcc-multilib-bootstrap-${GCC_BOOTSTRAP_VER}.tar.xz )"
-IUSE="audit caps cet compile-locales doc gd headers-only +multiarch multilib nscd profile selinux +ssp suid systemtap test vanilla"
+IUSE="audit caps cet compile-locales doc gd headers-only +multiarch multilib nscd profile selinux +ssp +static-libs suid systemtap test vanilla"
# Minimum kernel version that glibc requires
MIN_KERN_VER="3.2.0"
@@ -1331,6 +1331,12 @@ src_install() {
fi
foreach_abi glibc_do_src_install
+
+ if ! use static-libs ; then
+ elog "Not installing static glibc libraries"
+ find "${ED}" -name "*.a" -and -not -name "*_nonshared.a" -delete
+ fi
+
src_strip
}