Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Sep 2014 07:42:21 +0000 (UTC)
From:      Alberto Villa <avilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r369163 - branches/2014Q3/multimedia/mlt/files
Message-ID:  <201409240742.s8O7gLce021085@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avilla
Date: Wed Sep 24 07:42:21 2014
New Revision: 369163
URL: http://svnweb.freebsd.org/changeset/ports/369163
QAT: https://qat.redports.org/buildarchive/r369163/

Log:
  MFH: r369138
  
  - Fix build with Clang.
  
  PR:		189043
  Approved by:	portmgr (rea)

Added:
  branches/2014Q3/multimedia/mlt/files/patch-gite50606c
     - copied unchanged from r369138, head/multimedia/mlt/files/patch-gite50606c
Modified:
Directory Properties:
  branches/2014Q3/   (props changed)

Copied: branches/2014Q3/multimedia/mlt/files/patch-gite50606c (from r369138, head/multimedia/mlt/files/patch-gite50606c)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2014Q3/multimedia/mlt/files/patch-gite50606c	Wed Sep 24 07:42:21 2014	(r369163, copy of r369138, head/multimedia/mlt/files/patch-gite50606c)
@@ -0,0 +1,27 @@
+commit e50606ca3f680029b7f16bbbf284adac34f30ded
+Author: Dan Dennedy <dan@dennedy.org>
+Date:   Mon Jun 2 19:18:50 2014 -0700
+
+    Fix compilation with clang.
+
+diff --git a/configure b/configure
+index eb20880..e540704 100755
+--- configure
++++ configure
+@@ -81,10 +81,12 @@ build_config()
+ 		if [ "$optimisations" = "true" ]
+ 		then
+ 			echo "OPTIMISATIONS=-O2 -pipe"
+-			# Since gcc 4.6, this optimization enabled with -O1 causes filter_line_sse2 to crash.
+-			echo "OPTIMISATIONS+=-fno-tree-dominator-opts"
+-			# Since gcc 4.6, this optimization enabled with -O2 causes filter_line_sse2 to crash.
+-			echo "OPTIMISATIONS+=-fno-tree-pre"
++			if $("$CC" --version 2> /dev/null | grep gcc); then
++				# Since gcc 4.6, this optimization enabled with -O1 causes filter_line_sse2 to crash.
++				echo "OPTIMISATIONS+=-fno-tree-dominator-opts"
++				# Since gcc 4.6, this optimization enabled with -O2 causes filter_line_sse2 to crash.
++				echo "OPTIMISATIONS+=-fno-tree-pre"
++			fi
+ 		fi
+ 
+ 		echo "CFLAGS+=-Wall -DPIC \$(TARGETARCH) \$(TARGETCPU) \$(OPTIMISATIONS) \$(MMX_FLAGS) \$(SSE_FLAGS) \$(SSE2_FLAGS) \$(DEBUG_FLAGS) \$(LARGE_FILE)"



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