summaryrefslogtreecommitdiff
path: root/sys-devel/gcc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-07-12 12:50:47 +0100
committerV3n3RiX <venerix@rogentos.ro>2015-07-12 12:50:47 +0100
commit88eb655aafe09dd8feeb92952d27520a8ae56ac2 (patch)
tree927c6efbc8c93b82e3b55b7342c887c3d6893f22 /sys-devel/gcc
parent036bf223e7fcb4d26f575f641a41ba82c2997f30 (diff)
prevent removal of headers...from now on it's self sustaining
Diffstat (limited to 'sys-devel/gcc')
-rw-r--r--sys-devel/gcc/gcc-4.8.4.ebuild10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys-devel/gcc/gcc-4.8.4.ebuild b/sys-devel/gcc/gcc-4.8.4.ebuild
index e3a121f7..9b3359b3 100644
--- a/sys-devel/gcc/gcc-4.8.4.ebuild
+++ b/sys-devel/gcc/gcc-4.8.4.ebuild
@@ -49,15 +49,15 @@ src_prepare() {
src_install() {
toolchain_src_install
# drop base gcc libraries, they're provided by sys-devel/base-gcc-${PV}
- #
- # TODO , prevent dropping of headers
- #
export local libdir="${D}usr/lib/gcc/$(uname -m)-pc-linux-gnu/${PV}"
if use multilib ; then
export local multilibdir="${D}usr/lib/gcc/$(uname -m)-pc-linux-gnu/${PV}/32"
fi
-
- rm -rf "$libdir"
+
+ # if we remove whole libdir, headers are gone, so remove only libs and their symlinks
+ find "$libdir" -maxdepth 1 -type f -delete
+ find "$libdir" -maxdepth 1 -type l -delete
+ # however, removing multilibdir as a whole doesn't cause any problems
if use multilib ; then
rm -rf "$multilibdir"
fi