1 |
commit: 97f0db2416f531bcfbc20c64d64bde384c1aab23 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 25 15:11:06 2018 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 25 15:13:19 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97f0db24 |
7 |
|
8 |
toolchain.eclass: drop prepstrip(), bug #587316 |
9 |
|
10 |
This disables all stripping in gcc. As PMS does |
11 |
not provide an alternative just drop stripping |
12 |
for now. |
13 |
|
14 |
Reported-by: Michał Górny |
15 |
Closes: https://bugs.gentoo.org/587316 |
16 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
17 |
|
18 |
eclass/toolchain.eclass | 17 +++++++++-------- |
19 |
1 file changed, 9 insertions(+), 8 deletions(-) |
20 |
|
21 |
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass |
22 |
index 8a320329534..3ad65af83a8 100644 |
23 |
--- a/eclass/toolchain.eclass |
24 |
+++ b/eclass/toolchain.eclass |
25 |
@@ -1828,14 +1828,15 @@ toolchain_src_install() { |
26 |
fi |
27 |
fi |
28 |
|
29 |
- # Now do the fun stripping stuff |
30 |
- env RESTRICT="" CHOST=${CHOST} prepstrip "${D}${BINPATH}" |
31 |
- is_crosscompile && \ |
32 |
- env RESTRICT="" CHOST=${CHOST} prepstrip "${D}${HOSTLIBPATH}" |
33 |
- env RESTRICT="" CHOST=${CTARGET} prepstrip "${D}${LIBPATH}" |
34 |
- # gcc used to install helper binaries in lib/ but then moved to libexec/ |
35 |
- [[ -d ${D}${PREFIX}/libexec/gcc ]] && \ |
36 |
- env RESTRICT="" CHOST=${CHOST} prepstrip "${D}${PREFIX}/libexec/gcc/${CTARGET}/${GCC_CONFIG_VER}" |
37 |
+ # TODO: implement stripping (we use RESTRICT=strip) |
38 |
+ # As gcc installs object files both build against ${CHOST} and ${CTARGET} |
39 |
+ # we will ned to run stripping using different tools: |
40 |
+ # Using ${CHOST} tools: |
41 |
+ # - "${D}${BINPATH}" |
42 |
+ # - (for is_crosscompile) "${D}${HOSTLIBPATH}" |
43 |
+ # - "${D}${PREFIX}/libexec/gcc/${CTARGET}/${GCC_CONFIG_VER}" |
44 |
+ # Using ${CTARGET} tools: |
45 |
+ # - "${D}${LIBPATH}" |
46 |
|
47 |
cd "${S}" |
48 |
if is_crosscompile; then |