From 4b19be30aa626b327c885dae62c559ec0e9fb935 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 13 Oct 2019 22:19:36 +0100 Subject: gentoo resync : 13.10.2019 --- .../gnu-efi/files/gnu-efi-3.0.9-fix-clang-build.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sys-boot/gnu-efi/files/gnu-efi-3.0.9-fix-clang-build.patch (limited to 'sys-boot/gnu-efi/files/gnu-efi-3.0.9-fix-clang-build.patch') diff --git a/sys-boot/gnu-efi/files/gnu-efi-3.0.9-fix-clang-build.patch b/sys-boot/gnu-efi/files/gnu-efi-3.0.9-fix-clang-build.patch new file mode 100644 index 000000000000..0e4ec7d77b0c --- /dev/null +++ b/sys-boot/gnu-efi/files/gnu-efi-3.0.9-fix-clang-build.patch @@ -0,0 +1,19 @@ +Bug: https://bugs.gentoo.org/695612 +Upstream: https://sourceforge.net/p/gnu-efi/patches/70/ + +--- a/Make.defaults ++++ b/Make.defaults +@@ -110,10 +110,10 @@ + || ( [ $(GCCVERSION) -eq "4" ] \ + && [ $(GCCMINOR) -ge "7" ] ) ) \ + && echo 1) +- ifeq ($(GCCNEWENOUGH),1) +- CPPFLAGS += -DGNU_EFI_USE_MS_ABI -maccumulate-outgoing-args --std=c11 +- else ifeq ($(USING_CLANG),clang) ++ ifeq ($(USING_CLANG),clang) + CPPFLAGS += -DGNU_EFI_USE_MS_ABI --std=c11 ++ else ifeq ($(GCCNEWENOUGH),1) ++ CPPFLAGS += -DGNU_EFI_USE_MS_ABI -maccumulate-outgoing-args --std=c11 + endif + + CFLAGS += -mno-red-zone -- cgit v1.2.3