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 <nvinson234@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/34717
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Nicholas Vinson
2024-01-08 23:42:44 -05:00
committed by Sam James
parent bba9a81ce1
commit d7449bbbc7

View File

@@ -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() {