commit: 5c5c369c8d1e50616dff46f4185d6ed68a802448
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 9 02:25:24 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jul 9 02:25:24 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c5c369c
sys-libs/newlib: use dot-a.eclass
... to avoid installing broken static libraries w/ LTO.
Reported by zen_desu.
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../newlib/{newlib-9999.ebuild => newlib-4.5.0.20241231-r1.ebuild} | 7 +++++--
sys-libs/newlib/newlib-9999.ebuild | 7 +++++--
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/sys-libs/newlib/newlib-9999.ebuild
b/sys-libs/newlib/newlib-4.5.0.20241231-r1.ebuild
similarity index 97%
copy from sys-libs/newlib/newlib-9999.ebuild
copy to sys-libs/newlib/newlib-4.5.0.20241231-r1.ebuild
index 8b83f40af6e9..aa9e91891634 100644
--- a/sys-libs/newlib/newlib-9999.ebuild
+++ b/sys-libs/newlib/newlib-4.5.0.20241231-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
-inherit flag-o-matic toolchain-funcs
+inherit dot-a flag-o-matic toolchain-funcs
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git"
@@ -60,6 +60,7 @@ pkg_setup() {
}
src_configure() {
+ lto-guarantee-fat
# TODO: we should fix this
unset LDFLAGS
CHOST=${CTARGET} strip-unsupported-flags
@@ -172,6 +173,8 @@ src_install() {
"${ED}/usr/${CTARGET}/include/newlib-nano/newlib.h" ||
die
fi
+ strip-lto-bytecode
+
# minor hack to keep things clean
rm -rf "${D}"/usr/share/info || die
rm -rf "${D}"/usr/info || die
diff --git a/sys-libs/newlib/newlib-9999.ebuild
b/sys-libs/newlib/newlib-9999.ebuild
index 8b83f40af6e9..aa9e91891634 100644
--- a/sys-libs/newlib/newlib-9999.ebuild
+++ b/sys-libs/newlib/newlib-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
-inherit flag-o-matic toolchain-funcs
+inherit dot-a flag-o-matic toolchain-funcs
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://sourceware.org/git/newlib-cygwin.git"
@@ -60,6 +60,7 @@ pkg_setup() {
}
src_configure() {
+ lto-guarantee-fat
# TODO: we should fix this
unset LDFLAGS
CHOST=${CTARGET} strip-unsupported-flags
@@ -172,6 +173,8 @@ src_install() {
"${ED}/usr/${CTARGET}/include/newlib-nano/newlib.h" ||
die
fi
+ strip-lto-bytecode
+
# minor hack to keep things clean
rm -rf "${D}"/usr/share/info || die
rm -rf "${D}"/usr/info || die