commit: 8a34e13e64f60e6abe223bdf1dabe8fb96db3f0e Author: Manoj Gupta <manojgupta <AT> google <DOT> com> AuthorDate: Thu May 20 22:05:14 2021 +0000 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> CommitDate: Sun Jun 27 18:25:03 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a34e13e
app-crypt/efitools: Fix building with clang clang does not support -fno-toplevel-reorder. So remove it for clang builds. Signed-off-by: Manoj Gupta <manojgupta <AT> google.com> Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org> app-crypt/efitools/efitools-1.9.2.ebuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app-crypt/efitools/efitools-1.9.2.ebuild b/app-crypt/efitools/efitools-1.9.2.ebuild index 5bdfdc91102..8a9b2350676 100644 --- a/app-crypt/efitools/efitools-1.9.2.ebuild +++ b/app-crypt/efitools/efitools-1.9.2.ebuild @@ -38,6 +38,11 @@ src_prepare() { Makefile || die fi + # Let it build with clang. + if tc-is-clang; then + sed -i -e 's/-fno-toplevel-reorder//g' Make.rules || die + fi + # Respect users CFLAGS sed -i -e 's/CFLAGS.*= -O2 -g/CFLAGS += /' Make.rules || die