Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 551860 Details for
Bug 603594
portage's prestrip phase breaks LTO static libraries
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
estrip: Fix static library index
estrip-Fix-static-library-index-bug-603594.patch (text/plain), 1.24 KB, created by
Zac Medico
on 2018-10-19 16:44:39 UTC
(
hide
)
Description:
estrip: Fix static library index
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2018-10-19 16:44:39 UTC
Size:
1.24 KB
patch
obsolete
>From 6892c372a349ce9bc86417c866ab5e369a00e4c5 Mon Sep 17 00:00:00 2001 >From: Zac Medico <zmedico@gentoo.org> >Date: Fri, 19 Oct 2018 09:15:58 -0700 >Subject: [PATCH] estrip: Fix static library index (bug 603594) > >After strip of a static library, call ranlib to fix the index >which is needed for -lto support. > >Suggested-by: Sergei Trofimovich <slyfox@gentoo.org> >Signed-off-by: Zac Medico <zmedico@gentoo.org> >--- > bin/estrip | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/bin/estrip b/bin/estrip >index 369755cfe..1d77493a9 100755 >--- a/bin/estrip >+++ b/bin/estrip >@@ -113,7 +113,7 @@ if [[ ${KERNEL} == linux ]] && ${FEATURES_xattr} ; then > fi > > # look up the tools we might be using >-for t in STRIP:strip OBJCOPY:objcopy READELF:readelf ; do >+for t in STRIP:strip OBJCOPY:objcopy RANLIB:ranlib READELF:readelf ; do > v=${t%:*} # STRIP > t=${t#*:} # strip > eval ${v}=\"${!v:-${CHOST}-${t}}\" >@@ -424,6 +424,8 @@ do > # retain the debug info in the archive itself. > if ! ${FEATURES_splitdebug} || ${RESTRICT_splitdebug} ; then > ${STRIP} -g "${x}" >+ # Fix index removed by strip, required for -lto (bug 603594). >+ ${RANLIB} "${x}" > fi > fi > elif [[ ${f} == *"SB executable"* || ${f} == *"SB pie executable"* || >-- >2.18.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 603594
: 551860