Skip to content
Snippets Groups Projects
Commit 3ec50b81 authored by Alexandre Lision's avatar Alexandre Lision
Browse files

OSX: fix compilation of x264

x264 uses a deprecated flag -falign-loop breaking the compilation
http://www.xin.at/x264/x264-guide-macosx-en.htm
This is not the case in newer versions but we use the tarball
(packaged in august)

Change-Id: Id028a3e405cfb9bc286f9b6f1b79a8765f716a05
parent 8c4b047a
Branches
Tags
No related merge requests found
--- x264/configure 2013-03-01 16:21:59.000000000 -0500
+++ x264patched/configure 2015-01-14 14:11:27.000000000 -0500
@@ -456,7 +456,7 @@
;;
darwin*)
SYS="MACOSX"
- CFLAGS="$CFLAGS -falign-loops=16"
+ CFLAGS="$CFLAGS"
libm="-lm"
if [ "$pic" = "no" ]; then
cc_check "" -mdynamic-no-pic && CFLAGS="$CFLAGS -mdynamic-no-pic"
...@@ -35,6 +35,7 @@ x264: x264-git.tar.gz .sum-x264 ...@@ -35,6 +35,7 @@ x264: x264-git.tar.gz .sum-x264
rm -Rf $@-git rm -Rf $@-git
mkdir -p $@-git mkdir -p $@-git
$(ZCAT) "$<" | (cd $@-git && tar xv --strip-components=1) $(ZCAT) "$<" | (cd $@-git && tar xv --strip-components=1)
$(APPLY) $(SRC)/x264/remove-align.patch
$(UPDATE_AUTOCONFIG) $(UPDATE_AUTOCONFIG)
$(MOVE) $(MOVE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment