summaryrefslogtreecommitdiff
path: root/sys-devel/gcc/gcc-4.8.4.ebuild
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2015-07-12 14:54:44 +0300
committerBlackNoxis <steven.darklight@gmail.com>2015-07-12 14:54:44 +0300
commit0358c5804e72055d4b5ba5fef32ea0946fcb0bcd (patch)
treef968e069faf7f2a696786ca6841156d8b3fccb54 /sys-devel/gcc/gcc-4.8.4.ebuild
parent8c13cca6ba63f70e1caeb90e5fbaf8be64d449b3 (diff)
parent88eb655aafe09dd8feeb92952d27520a8ae56ac2 (diff)
Merge remote-tracking branch 'venerix/master'
Diffstat (limited to 'sys-devel/gcc/gcc-4.8.4.ebuild')
-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