commit: 4c325e846f72b64ff3e73e9f3c4567c508da21e9
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 29 07:14:43 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Feb 29 07:15:33 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c325e84
app-arch/libarchive: elibtoolize to respect flags w/ LTO
Our elt-patches contain fixes to respect LTO properly:
```
* Running elibtoolize in: libarchive-3.7.2/
* Applying ppc64le/2.4.4 patch ...
* Running elibtoolize in: libarchive-3.7.2/build/autoconf/
* Applying portage/1.2.0 patch ...
* Applying sed/1.5.6 patch ...
* Applying as-needed/2.4.3 patch ...
* Applying werror/2.4.6 patch ...
* Applying cxx-pthread/2.4.6 patch ...
* Applying color-record/2.4.6-alt patch ...
* Applying sed-quote/2.4.6 patch ...
```
Signed-off-by: Sam James <sam <AT> gentoo.org>
app-arch/libarchive/libarchive-3.7.2-r2.ebuild | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/app-arch/libarchive/libarchive-3.7.2-r2.ebuild
b/app-arch/libarchive/libarchive-3.7.2-r2.ebuild
index c4c3526547e1..690f6b400ac8 100644
--- a/app-arch/libarchive/libarchive-3.7.2-r2.ebuild
+++ b/app-arch/libarchive/libarchive-3.7.2-r2.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-inherit multilib-minimal toolchain-funcs verify-sig
+inherit libtool multilib-minimal toolchain-funcs verify-sig
DESCRIPTION="Multi-format archive and compression library"
HOMEPAGE="
@@ -78,6 +78,13 @@ PATCHES=(
"${FILESDIR}/${P}-lrzip.patch"
)
+src_prepare() {
+ default
+
+ # Needed for flags to be respected w/ LTO
+ elibtoolize
+}
+
multilib_src_configure() {
export ac_cv_header_ext2fs_ext2_fs_h=$(usex e2fsprogs) #354923