Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/efitools/
Date: Sun, 27 Jun 2021 18:25:11
Message-Id: 1624818303.8a34e13e64f60e6abe223bdf1dabe8fb96db3f0e.tamiko@gentoo
1 commit: 8a34e13e64f60e6abe223bdf1dabe8fb96db3f0e
2 Author: Manoj Gupta <manojgupta <AT> google <DOT> com>
3 AuthorDate: Thu May 20 22:05:14 2021 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 27 18:25:03 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a34e13e
7
8 app-crypt/efitools: Fix building with clang
9
10 clang does not support -fno-toplevel-reorder. So remove
11 it for clang builds.
12
13 Signed-off-by: Manoj Gupta <manojgupta <AT> google.com>
14 Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
15
16 app-crypt/efitools/efitools-1.9.2.ebuild | 5 +++++
17 1 file changed, 5 insertions(+)
18
19 diff --git a/app-crypt/efitools/efitools-1.9.2.ebuild b/app-crypt/efitools/efitools-1.9.2.ebuild
20 index 5bdfdc91102..8a9b2350676 100644
21 --- a/app-crypt/efitools/efitools-1.9.2.ebuild
22 +++ b/app-crypt/efitools/efitools-1.9.2.ebuild
23 @@ -38,6 +38,11 @@ src_prepare() {
24 Makefile || die
25 fi
26
27 + # Let it build with clang.
28 + if tc-is-clang; then
29 + sed -i -e 's/-fno-toplevel-reorder//g' Make.rules || die
30 + fi
31 +
32 # Respect users CFLAGS
33 sed -i -e 's/CFLAGS.*= -O2 -g/CFLAGS += /' Make.rules || die