23223926 soffice segv's in gtk_window_realize with new Userland gtk2
authorAlan Coopersmith <Alan.Coopersmith@Oracle.COM>
Tue, 03 May 2016 19:47:01 -0700
changeset 5917 5d22f319e25b
parent 5916 7e69cc042bec
child 5918 3cbac9806123
23223926 soffice segv's in gtk_window_realize with new Userland gtk2
components/gnome/gtk2/Makefile
--- a/components/gnome/gtk2/Makefile	Tue May 03 18:37:30 2016 -0700
+++ b/components/gnome/gtk2/Makefile	Tue May 03 19:47:01 2016 -0700
@@ -46,6 +46,13 @@
 
 CFLAGS += $(CPP_XPG6MODE)
 
+# gcc defaults to assuming stacks are 8 byte aligned on x86, but some
+# important existing binaries use the 4 byte alignment from the SysV ABI
+# and may segv on instructions like MOVAPS that require correct alignment,
+# so we override the gcc defaults until gcc fixes
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40838
+gcc_OPT.i386.32 += -mincoming-stack-boundary=2
+
 # Generate man pages.
 CONFIGURE_OPTIONS += --enable-man
 # Required for other components.