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 81FD2158451 for ; Tue, 9 Jan 2024 07:29:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B4834E2A11; Tue, 9 Jan 2024 07:29:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 98857E2A11 for ; Tue, 9 Jan 2024 07:29:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 smtp.gentoo.org (Postfix) with ESMTPS id C1C5C3432B6 for ; Tue, 9 Jan 2024 07:29:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5F08A1082 for ; Tue, 9 Jan 2024 07:29:20 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1704785344.d7449bbbc7e898bc848a447ce14ef9e32199453b.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/sam2p/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/sam2p/sam2p-0.49.4_p20190718-r1.ebuild X-VCS-Directories: media-gfx/sam2p/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d7449bbbc7e898bc848a447ce14ef9e32199453b X-VCS-Branch: master Date: Tue, 9 Jan 2024 07:29:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 870c12fd-e5fe-4290-9410-c06df75d73c5 X-Archives-Hash: 103b229ecdd5893b04c8c9be0e124afe commit: d7449bbbc7e898bc848a447ce14ef9e32199453b Author: Nicholas Vinson gmail com> AuthorDate: Tue Jan 9 04:42:44 2024 +0000 Commit: Sam James gentoo org> CommitDate: Tue Jan 9 07:29:04 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7449bbb media-gfx/sam2p: Fix clang -flto build failure When compiling with clang and ld.lld build fails with the error message: ps_tiny.o: file not recognized: file format not recognized This is because the build system does not properly honor standard buildtime flags and instead requires nonstandard flags be set to get the proper build result. This patch sets the necessary flags to successfully compile with clang and -flto. Signed-off-by: Nicholas Vinson gmail.com> Closes: https://github.com/gentoo/gentoo/pull/34717 Signed-off-by: Sam James gentoo.org> media-gfx/sam2p/sam2p-0.49.4_p20190718-r1.ebuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/media-gfx/sam2p/sam2p-0.49.4_p20190718-r1.ebuild b/media-gfx/sam2p/sam2p-0.49.4_p20190718-r1.ebuild index 2ce3a6e8e027..fd8877e311de 100644 --- a/media-gfx/sam2p/sam2p-0.49.4_p20190718-r1.ebuild +++ b/media-gfx/sam2p/sam2p-0.49.4_p20190718-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -48,7 +48,12 @@ src_configure() { } src_compile() { - emake GCC_STRIP= + emake GCC_STRIP= \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + LD="$(tc-getCC)" \ + LDXX="$(tc-getCXX)" \ + LDY="$(tc-getCC)" } src_install() {