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>
This commit is contained in:
Manoj Gupta
2021-06-27 13:25:03 -05:00
committed by Matthias Maier
parent e4ec7a7c00
commit 8a34e13e64
+5
View File
@@ -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