# HG changeset patch # User Alan Coopersmith # Date 1462330021 25200 # Node ID 5d22f319e25b259492a0d5e91f23932377842a13 # Parent 7e69cc042bec63c3fc3f1294921b344488d40aef 23223926 soffice segv's in gtk_window_realize with new Userland gtk2 diff -r 7e69cc042bec -r 5d22f319e25b 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.