From 6111ccdd2723f72a11fb38e033d239a48e3f7d98 Mon Sep 17 00:00:00 2001 From: riggs Date: Mon, 20 Feb 2017 17:51:19 +0000 Subject: Fix stack alignment on i386, may cause runtime crashes PR: 216837 Submitted by: cpm MFH: 2017Q1 --- multimedia/libass/Makefile | 1 + multimedia/libass/files/patch-configure.ac | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 multimedia/libass/files/patch-configure.ac (limited to 'multimedia') diff --git a/multimedia/libass/Makefile b/multimedia/libass/Makefile index 371437fea2b5..6be2b4877cbb 100644 --- a/multimedia/libass/Makefile +++ b/multimedia/libass/Makefile @@ -2,6 +2,7 @@ PORTNAME= libass PORTVERSION= 0.13.6 +PORTREVISION= 1 CATEGORIES= multimedia devel MAINTAINER= multimedia@FreeBSD.org diff --git a/multimedia/libass/files/patch-configure.ac b/multimedia/libass/files/patch-configure.ac new file mode 100644 index 000000000000..bf52d2b34854 --- /dev/null +++ b/multimedia/libass/files/patch-configure.ac @@ -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], [ -- cgit