Fix stack alignment on i386, may cause runtime crashes

PR:		216837
Submitted by:	cpm
MFH:		2017Q1
This commit is contained in:
Thomas Zander 2017-02-20 17:51:19 +00:00
parent 1a52c51238
commit cff69eae2c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=434477
2 changed files with 17 additions and 0 deletions

View file

@ -2,6 +2,7 @@
PORTNAME= libass PORTNAME= libass
PORTVERSION= 0.13.6 PORTVERSION= 0.13.6
PORTREVISION= 1
CATEGORIES= multimedia devel CATEGORIES= multimedia devel
MAINTAINER= multimedia@FreeBSD.org MAINTAINER= multimedia@FreeBSD.org

View file

@ -0,0 +1,16 @@
--- 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], [