diff options
author | Alberto Villa <avilla@FreeBSD.org> | 2014-09-24 07:42:21 +0000 |
---|---|---|
committer | Alberto Villa <avilla@FreeBSD.org> | 2014-09-24 07:42:21 +0000 |
commit | 2c9faf3ff8be433dabd26cbd04d74ea6e768c8da (patch) | |
tree | e988b197db0c21bba44d14a794610aa6b3910b41 | |
parent | 2918badef80ec330373d6969ee803a1317e86ff8 (diff) | |
download | ports-2c9faf3ff8be433dabd26cbd04d74ea6e768c8da.tar.gz ports-2c9faf3ff8be433dabd26cbd04d74ea6e768c8da.zip |
MFH: r369138
- Fix build with Clang.
PR: 189043
Approved by: portmgr (rea)
Notes
Notes:
svn path=/branches/2014Q3/; revision=369163
-rw-r--r-- | multimedia/mlt/files/patch-gite50606c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/multimedia/mlt/files/patch-gite50606c b/multimedia/mlt/files/patch-gite50606c new file mode 100644 index 000000000000..720b5d8c5d1d --- /dev/null +++ b/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)" |