summaryrefslogtreecommitdiff
path: root/extra/gnu-efi-libs/disable-ms_abi-flag.patch
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-13 01:32:19 -0800
committerroot <root@rshg054.dnsready.net>2012-11-13 01:32:19 -0800
commita29329c38e50afd28d28c3a99e35d8774b9b19f8 (patch)
tree42f4b2e44d0f2fcce6dff4f44ba48e623437b16e /extra/gnu-efi-libs/disable-ms_abi-flag.patch
parentb863c91c6c9218e2ad9458231b24385be177ed08 (diff)
Tue Nov 13 01:32:13 PST 2012
Diffstat (limited to 'extra/gnu-efi-libs/disable-ms_abi-flag.patch')
-rw-r--r--extra/gnu-efi-libs/disable-ms_abi-flag.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/extra/gnu-efi-libs/disable-ms_abi-flag.patch b/extra/gnu-efi-libs/disable-ms_abi-flag.patch
new file mode 100644
index 000000000..2fb61a1d7
--- /dev/null
+++ b/extra/gnu-efi-libs/disable-ms_abi-flag.patch
@@ -0,0 +1,16 @@
+diff --git a/Make.defaults b/Make.defaults
+index 38da180..aa1f4de 100644
+--- a/Make.defaults
++++ b/Make.defaults
+@@ -54,9 +54,9 @@ GCCNEWENOUGH := $(shell ([ $(GCCVERSION) -gt "4" ] || ([ $(GCCVERSION) -eq "4" ]
+
+ CPPFLAGS = -DCONFIG_$(ARCH)
+ ifeq ($(GCCNEWENOUGH),1)
+-CPPFLAGS += -DGNU_EFI_USE_MS_ABI -maccumulate-outgoing-args
++CPPFLAGS += -maccumulate-outgoing-args
+ endif
+-CFLAGS = $(ARCH3264) -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants
++CFLAGS = $(ARCH3264) -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-stack-protector -fno-merge-constants
+ ASFLAGS = $(ARCH3264)
+ LDFLAGS = -nostdlib
+ INSTALL = install