sys-boot/gnu-efi: Add custom-cflags flag and prevent avx instructions
authorMatthias Dahl <matthias.dahl@binary-island.eu>
Tue, 4 Jul 2017 08:02:11 +0000 (10:02 +0200)
committerMike Gilbert <floppym@gentoo.org>
Sun, 9 Jul 2017 15:07:40 +0000 (11:07 -0400)
commit3d47ec7831aa3c05e7b9dd2fad67e3e9dcb38c18
treef8f95baff37b168fb22456498b2ed3de99126fd6
parent3ec2c9a86396339b91cb961888be16382558aa26
sys-boot/gnu-efi: Add custom-cflags flag and prevent avx instructions

Building gnu-efi with custom compiler flags is risky at best and should
generally be avoided.

Nevertheless, if custom flags are used, we need to make sure no avx instructions
are generated as those cause a non-functional gnu-efi build. This is only
required for >= 3.0.5 as prior to this, "-mno-sse" was used which also implied
no avx.

Fixes bug #619628.
sys-boot/gnu-efi/gnu-efi-3.0.6-r1.ebuild [moved from sys-boot/gnu-efi/gnu-efi-3.0.6.ebuild with 87% similarity]