From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CEAD4159C96 for ; Thu, 25 Jul 2024 18:06:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 30B4D2BC019; Thu, 25 Jul 2024 18:06:32 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DE381E2A3C for ; Thu, 25 Jul 2024 18:06:31 +0000 (UTC) From: James Le Cuirot To: gentoo-dev Cc: rust@gentoo.org, python@gentoo.org, James Le Cuirot Subject: [gentoo-dev] [PATCH v4 0/6] cargo.eclass: Handle LDFLAGS and RUSTFLAGS better Date: Thu, 25 Jul 2024 19:02:13 +0100 Message-ID: <20240725180612.19453-1-chewi@gentoo.org> X-Mailer: git-send-email 2.45.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 391d975c-dbd9-46f4-b989-e63157c8d742 X-Archives-Hash: 85ee2ea94572f134a613d51bd59ad859 Sorry for yet another iteration of this. I noticed that the build host flags were not being applied to rustc when cross-compiling. Upon investigation, I found that this isn't actually possible right now. I have reworked it to be close to what we need when it does become possible. James Le Cuirot (6): cargo.eclass: Use newer Cargo config file name cargo.eclass: Add cargo_env helper and use it in compile, test, install cargo.eclass: Handle LDFLAGS and RUSTFLAGS better cargo.eclass: Explicitly tell rustc not to strip binaries cargo.eclass: Shadow flag variables so that LTO filtering remains local distutils-r1.eclass: Use cargo_env when appropriate for flag handling eclass/cargo.eclass | 93 ++++++++++++++++++++++++++------------ eclass/distutils-r1.eclass | 16 ++----- 2 files changed, 69 insertions(+), 40 deletions(-) -- 2.45.2