ports/multimedia/libass/files/patch-configure.ac
Thomas Zander cff69eae2c Fix stack alignment on i386, may cause runtime crashes
PR:		216837
Submitted by:	cpm
MFH:		2017Q1
2017-02-20 17:51:19 +00:00

16 lines
674 B
Text

--- configure.ac.orig 2017-02-05 22:41:56 UTC
+++ configure.ac
@@ -79,7 +79,12 @@ AS_IF([test x$enable_asm != xno], [
[*darwin*], [
ASFLAGS="$ASFLAGS -f macho$BITS -DPREFIX -DHAVE_ALIGNED_STACK=1" ],
[*linux*|*dragonfly*|*bsd*|*solaris*], [
- ASFLAGS="$ASFLAGS -f elf -DHAVE_ALIGNED_STACK=1" ],
+ AS_IF([test x$BITS = x64], [
+ ASFLAGS="$ASFLAGS -f elf -DHAVE_ALIGNED_STACK=1"
+ ], [
+ ASFLAGS="$ASFLAGS -f elf -DHAVE_ALIGNED_STACK=0"
+ ])
+ ],
[*cygwin*|*mingw*], [
ASFLAGS="$ASFLAGS -f win$BITS"
AS_IF([test x$BITS = x64], [