mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user