Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Sep 2014 00:48:45 +0000 (UTC)
From:      Alberto Villa <avilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r369138 - head/multimedia/mlt/files
Message-ID:  <201409240048.s8O0mjK8022549@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avilla
Date: Wed Sep 24 00:48:45 2014
New Revision: 369138
URL: http://svnweb.freebsd.org/changeset/ports/369138
QAT: https://qat.redports.org/buildarchive/r369138/

Log:
  - Fix build with Clang.
  
  PR:		189043
  MFH:		2014Q3

Added:
  head/multimedia/mlt/files/patch-gite50606c   (contents, props changed)

Added: head/multimedia/mlt/files/patch-gite50606c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/mlt/files/patch-gite50606c	Wed Sep 24 00:48:45 2014	(r369138)
@@ -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?201409240048.s8O0mjK8022549>