commit:     a7f481d78ccb54c9000a10c49e0e29259282d3a2
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 21 14:23:26 2025 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Thu Aug 21 14:23:26 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7f481d7

sys-apps/iproute2: set CBUILD_CFLAGS envvar

Use in netem/Makefile.

Bug: https://bugs.gentoo.org/961860
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 sys-apps/iproute2/iproute2-6.16.0.ebuild | 3 +++
 sys-apps/iproute2/iproute2-9999.ebuild   | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/sys-apps/iproute2/iproute2-6.16.0.ebuild 
b/sys-apps/iproute2/iproute2-6.16.0.ebuild
index dfc30230bd45..24b326f4fb3b 100644
--- a/sys-apps/iproute2/iproute2-6.16.0.ebuild
+++ b/sys-apps/iproute2/iproute2-6.16.0.ebuild
@@ -88,6 +88,9 @@ src_configure() {
        tc-export AR CC PKG_CONFIG
        lto-guarantee-fat
 
+       tc-export_build_env
+       export CBUILD_CFLAGS=${BUILD_CFLAGS}
+
        # This sure is ugly. Should probably move into toolchain-funcs at some 
point.
        local setns
        pushd "${T}" >/dev/null || die

diff --git a/sys-apps/iproute2/iproute2-9999.ebuild 
b/sys-apps/iproute2/iproute2-9999.ebuild
index dfc30230bd45..24b326f4fb3b 100644
--- a/sys-apps/iproute2/iproute2-9999.ebuild
+++ b/sys-apps/iproute2/iproute2-9999.ebuild
@@ -88,6 +88,9 @@ src_configure() {
        tc-export AR CC PKG_CONFIG
        lto-guarantee-fat
 
+       tc-export_build_env
+       export CBUILD_CFLAGS=${BUILD_CFLAGS}
+
        # This sure is ugly. Should probably move into toolchain-funcs at some 
point.
        local setns
        pushd "${T}" >/dev/null || die

Reply via email to