From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 finch.gentoo.org (Postfix) with ESMTPS id DAD441584AD for ; Fri, 02 May 2025 20:19:54 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id C7F6C34313C for ; Fri, 02 May 2025 20:19:54 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 15B4D1104EE; Fri, 02 May 2025 20:14:57 +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 bobolink.gentoo.org (Postfix) with ESMTPS id 35F601104E5 for ; Fri, 02 May 2025 20:14:56 +0000 (UTC) Received: from mop.. (unknown [82.8.138.118]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sam@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 6E2F4340DE6; Fri, 02 May 2025 20:14:55 +0000 (UTC) From: Sam James To: gentoo-dev@lists.gentoo.org Cc: Sam James Subject: [gentoo-dev] [PATCH 5/5] sys-devel/flex: use dot-a.eclass for LTO Date: Fri, 2 May 2025 21:13:46 +0100 Message-ID: X-Mailer: git-send-email 2.49.0 In-Reply-To: References: 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: 28cc6714-1c2a-470f-ae3a-7d72f9a00549 X-Archives-Hash: c5ebf160b6261d67949de4b1b7c113ff This means that USE=static-libs doesn't produce a "broken" library when built w/ LTO. Closes: https://bugs.gentoo.org/592868 Closes: https://bugs.gentoo.org/616106 Closes: https://bugs.gentoo.org/876430 Closes: https://bugs.gentoo.org/924183 Closes: https://bugs.gentoo.org/936172 Closes: https://bugs.gentoo.org/938858 Closes: https://bugs.gentoo.org/940541 Closes: https://bugs.gentoo.org/944291 Closes: https://bugs.gentoo.org/945923 Signed-off-by: Sam James --- sys-devel/flex/flex-2.6.4-r6.ebuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys-devel/flex/flex-2.6.4-r6.ebuild b/sys-devel/flex/flex-2.6.4-r6.ebuild index 41845f105a3d3..c024ea00fe94c 100644 --- a/sys-devel/flex/flex-2.6.4-r6.ebuild +++ b/sys-devel/flex/flex-2.6.4-r6.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit flag-o-matic libtool multilib-minimal toolchain-funcs +inherit dot-a flag-o-matic libtool multilib-minimal toolchain-funcs DESCRIPTION="The Fast Lexical Analyzer" HOMEPAGE="https://github.com/westes/flex" @@ -53,7 +53,7 @@ src_prepare() { src_configure() { use static && append-ldflags -static - + lto-guarantee-fat multilib-minimal_src_configure } @@ -86,6 +86,7 @@ multilib_src_install() { } multilib_src_install_all() { + strip-lto-bytecode einstalldocs dodoc ONEWS find "${ED}" -name '*.la' -type f -delete || die -- 2.49.0