diff mbox

[7/8] alsa: fix compilation for clang

Message ID 1407352737-7959-7-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
---
 recipes/alsa/alsa-lib-1.0.27.2/clang.patch | 36 ++++++++++++++++++++++++++++++
 recipes/alsa/alsa-lib_1.0.27.2.oe          |  2 ++
 2 files changed, 38 insertions(+)
 create mode 100644 recipes/alsa/alsa-lib-1.0.27.2/clang.patch
diff mbox

Patch

diff --git a/recipes/alsa/alsa-lib-1.0.27.2/clang.patch b/recipes/alsa/alsa-lib-1.0.27.2/clang.patch
new file mode 100644
index 0000000..c6b4ce7
--- /dev/null
+++ b/recipes/alsa/alsa-lib-1.0.27.2/clang.patch
@@ -0,0 +1,36 @@ 
+diff -urN a/configure.in b/configure.in
+--- a/configure.in	2013-07-08 14:31:36.000000000 +0200
++++ b/configure.in	2014-06-28 12:16:57.702194888 +0200
+@@ -27,19 +27,19 @@
+ dnl Checks for programs.
+ 
+ dnl try to gues cross-compiler if not set
+-if test "x$host" != "x$build" -a -z "`echo $CC | grep -e '-gcc'`";
+-then
+-  AC_MSG_CHECKING(for cross-compiler)
+-
+-  which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
+-  which ${host_cpu}-${host_os}-gcc >/dev/null 2>&1 \
+-  && CC=${host_cpu}-${host_os}-gcc
+-  which ${host_cpu}-${host_vendor}-${host_os}-gcc >/dev/null 2>&1 \
+-  && CC=${host_cpu}-${host_vendor}-${host_os}-gcc
+-
+-  AC_MSG_RESULT($CC)
+-fi
+-	    
++#if test "x$host" != "x$build" -a -z "`echo $CC | grep -e '-gcc'`";
++#then
++#  AC_MSG_CHECKING(for cross-compiler)
++#
++#  which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
++#  which ${host_cpu}-${host_os}-gcc >/dev/null 2>&1 \
++#  && CC=${host_cpu}-${host_os}-gcc
++#  which ${host_cpu}-${host_vendor}-${host_os}-gcc >/dev/null 2>&1 \
++#  && CC=${host_cpu}-${host_vendor}-${host_os}-gcc
++#
++#  AC_MSG_RESULT($CC)
++#fi
++#	    
+ CFLAGS="$CFLAGS -D_GNU_SOURCE"
+ 
+ 
diff --git a/recipes/alsa/alsa-lib_1.0.27.2.oe b/recipes/alsa/alsa-lib_1.0.27.2.oe
index 383058f..3b0aa05 100644
--- a/recipes/alsa/alsa-lib_1.0.27.2.oe
+++ b/recipes/alsa/alsa-lib_1.0.27.2.oe
@@ -4,3 +4,5 @@  BUGTRACKER = "https://bugtrack.alsa-project.org/alsa-bug/login_page.php"
 LICENSE = "LGPL-2.1 LGPL-2.0+"
 
 require alsa-lib.inc
+
+SRC_URI += "file://clang.patch"