summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoj Gupta <manojgupta@google.com>2021-05-20 15:05:14 -0700
committerMatthias Maier <tamiko@gentoo.org>2021-06-27 13:25:03 -0500
commit8a34e13e64f60e6abe223bdf1dabe8fb96db3f0e (patch)
tree06b171e1f58bfb033689b68c4d9001b6cf540548 /app-crypt
parentdev-util/cloc: drop old (diff)
downloadgentoo-8a34e13e64f60e6abe223bdf1dabe8fb96db3f0e.tar.gz
gentoo-8a34e13e64f60e6abe223bdf1dabe8fb96db3f0e.tar.bz2
gentoo-8a34e13e64f60e6abe223bdf1dabe8fb96db3f0e.zip
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@google.com> Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'app-crypt')
-rw-r--r--app-crypt/efitools/efitools-1.9.2.ebuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/app-crypt/efitools/efitools-1.9.2.ebuild b/app-crypt/efitools/efitools-1.9.2.ebuild
index 5bdfdc911029..8a9b23506766 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