Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Oct 2016 12:19:32 +0000 (UTC)
From:      Thomas Zander <riggs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r423592 - in head/multimedia/ffmpeg: . files
Message-ID:  <201610091219.u99CJWk1010735@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: riggs
Date: Sun Oct  9 12:19:32 2016
New Revision: 423592
URL: https://svnweb.freebsd.org/changeset/ports/423592

Log:
  Fix runtime crashes on i386: enforce stack-alignment=16
  
  PR:		205958
  Submitted by:	dim (patch via ports mailing list)
  Reported by:	otacilio.neto@bsd.com.br
  MFH:		2016Q4 (ports-secteam fix blanket)

Modified:
  head/multimedia/ffmpeg/Makefile
  head/multimedia/ffmpeg/files/patch-configure

Modified: head/multimedia/ffmpeg/Makefile
==============================================================================
--- head/multimedia/ffmpeg/Makefile	Sun Oct  9 12:10:02 2016	(r423591)
+++ head/multimedia/ffmpeg/Makefile	Sun Oct  9 12:19:32 2016	(r423592)
@@ -3,7 +3,7 @@
 
 PORTNAME=	ffmpeg
 PORTVERSION=	2.8.8
-PORTREVISION=	3
+PORTREVISION=	4
 PORTEPOCH=	1
 CATEGORIES=	multimedia audio ipv6 net
 MASTER_SITES=	http://ffmpeg.org/releases/

Modified: head/multimedia/ffmpeg/files/patch-configure
==============================================================================
--- head/multimedia/ffmpeg/files/patch-configure	Sun Oct  9 12:10:02 2016	(r423591)
+++ head/multimedia/ffmpeg/files/patch-configure	Sun Oct  9 12:19:32 2016	(r423592)
@@ -14,6 +14,19 @@
  cpu="generic"
  intrinsics="none"
  
+@@ -5682,7 +5677,11 @@ elif enabled gcc; then
+ elif enabled llvm_gcc; then
+     check_cflags -mllvm -stack-alignment=16
+ elif enabled clang; then
+-    check_cflags -mllvm -stack-alignment=16
++    if enabled x86_32; then
++        check_cflags -mllvm -stack-alignment=16
++        check_cflags -mstack-alignment=16
++        check_cflags -mstackrealign
++    fi
+     check_cflags -Qunused-arguments
+     check_cflags -Werror=implicit-function-declaration
+     check_cflags -Werror=missing-prototypes
 @@ -5823,7 +5818,7 @@ ifndef MAIN_MAKEFILE
  SRC_PATH:=\$(SRC_PATH:.%=..%)
  endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610091219.u99CJWk1010735>