Skip to content

Commit

Permalink
app-crypt/efitools: Fix building with clang
Browse files Browse the repository at this point in the history
clang does not support -fno-toplevel-reorder. So remove
it for clang builds.

Signed-off-by: Manoj Gupta <[email protected]>
Signed-off-by: Matthias Maier <[email protected]>
  • Loading branch information
m-gupta authored and tamiko committed Jun 27, 2021
1 parent e4ec7a7 commit 8a34e13
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app-crypt/efitools/efitools-1.9.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8a34e13

Please sign in to comment.