diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2018-11-25 15:11:06 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2018-11-25 15:13:19 +0000 |
commit | 97f0db2416f531bcfbc20c64d64bde384c1aab23 (patch) | |
tree | c18f54cec35df55180b870d5b146645ff4a5292a /eclass | |
parent | sys-libs/newlib: drop comment mentioning prepallstrip() (diff) | |
download | gentoo-97f0db2416f531bcfbc20c64d64bde384c1aab23.tar.gz gentoo-97f0db2416f531bcfbc20c64d64bde384c1aab23.tar.bz2 gentoo-97f0db2416f531bcfbc20c64d64bde384c1aab23.zip |
toolchain.eclass: drop prepstrip(), bug #587316
This disables all stripping in gcc. As PMS does
not provide an alternative just drop stripping
for now.
Reported-by: Michał Górny
Closes: https://bugs.gentoo.org/587316
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 8a3203295348..3ad65af83a84 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1828,14 +1828,15 @@ toolchain_src_install() { fi fi - # Now do the fun stripping stuff - env RESTRICT="" CHOST=${CHOST} prepstrip "${D}${BINPATH}" - is_crosscompile && \ - env RESTRICT="" CHOST=${CHOST} prepstrip "${D}${HOSTLIBPATH}" - env RESTRICT="" CHOST=${CTARGET} prepstrip "${D}${LIBPATH}" - # gcc used to install helper binaries in lib/ but then moved to libexec/ - [[ -d ${D}${PREFIX}/libexec/gcc ]] && \ - env RESTRICT="" CHOST=${CHOST} prepstrip "${D}${PREFIX}/libexec/gcc/${CTARGET}/${GCC_CONFIG_VER}" + # TODO: implement stripping (we use RESTRICT=strip) + # As gcc installs object files both build against ${CHOST} and ${CTARGET} + # we will ned to run stripping using different tools: + # Using ${CHOST} tools: + # - "${D}${BINPATH}" + # - (for is_crosscompile) "${D}${HOSTLIBPATH}" + # - "${D}${PREFIX}/libexec/gcc/${CTARGET}/${GCC_CONFIG_VER}" + # Using ${CTARGET} tools: + # - "${D}${LIBPATH}" cd "${S}" if is_crosscompile; then |