diff mbox

[6/8] libtheora: fix compilation for clang

Message ID 1407352737-7959-6-git-send-email-diorcet.yann@gmail.com
State Not Applicable
Delegated to: Christian Sørensen
Headers show

Commit Message

Yann Diorcet Aug. 6, 2014, 7:18 p.m. UTC
---
 .../libtheora-1.2.0alpha1/configure-clang.patch    | 24 ++++++++++++++++++++++
 recipes/libtheora/libtheora_1.2.0alpha1.oe         |  3 ++-
 2 files changed, 26 insertions(+), 1 deletion(-)
 create mode 100644 recipes/libtheora/libtheora-1.2.0alpha1/configure-clang.patch
diff mbox

Patch

diff --git a/recipes/libtheora/libtheora-1.2.0alpha1/configure-clang.patch b/recipes/libtheora/libtheora-1.2.0alpha1/configure-clang.patch
new file mode 100644
index 0000000..96a20ed
--- /dev/null
+++ b/recipes/libtheora/libtheora-1.2.0alpha1/configure-clang.patch
@@ -0,0 +1,24 @@ 
+diff -urN a/configure b/configure
+--- a/configure	2009-10-01 20:04:08.000000000 +0200
++++ b/configure	2014-04-30 08:16:54.585441000 +0200
+@@ -11863,7 +11863,7 @@
+         case $host in
+         *)
+                 DEBUG="-g -Wall -Wno-parentheses -DDEBUG -D__NO_MATH_INLINES"
+-                CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops"
++                CFLAGS="-Wall -Wno-parentheses -O3 -fomit-frame-pointer -finline-functions -funroll-loops"
+                 PROFILE="-Wall -Wno-parentheses -pg -g -O3 -fno-inline-functions -DDEBUG";;
+         esac
+ fi
+diff -urN a/configure.ac b/configure.ac
+--- a/configure.ac	2009-10-01 20:00:33.000000000 +0200
++++ b/configure.ac	2014-04-30 08:16:42.173720696 +0200
+@@ -168,7 +168,7 @@
+         case $host in 
+         *)
+                 DEBUG="-g -Wall -Wno-parentheses -DDEBUG -D__NO_MATH_INLINES"
+-                CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops"
++                CFLAGS="-Wall -Wno-parentheses -O3 -fomit-frame-pointer -finline-functions -funroll-loops"
+                 PROFILE="-Wall -Wno-parentheses -pg -g -O3 -fno-inline-functions -DDEBUG";;
+         esac
+ fi
diff --git a/recipes/libtheora/libtheora_1.2.0alpha1.oe b/recipes/libtheora/libtheora_1.2.0alpha1.oe
index d1ca3c5..9e7746c 100644
--- a/recipes/libtheora/libtheora_1.2.0alpha1.oe
+++ b/recipes/libtheora/libtheora_1.2.0alpha1.oe
@@ -6,10 +6,11 @@  LICENSE = "BSD"
 inherit autotools pkgconfig
 
 SRC_URI = "http://downloads.xiph.org/releases/theora/libtheora-${PV}.tar.gz"
+SRC_URI += "file://configure-clang.patch"
 
 DEPENDS = "libogg"
 
-EXTRA_OECONF = "--disable-examples"
+EXTRA_OECONF = "--disable-examples --disable-asm"
 
 inherit auto-package-libs
 AUTO_PACKAGE_LIBS = "theoradec theoraenc"