summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.21/tls_m4.patch
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2010-12-07 17:03:40 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-09 12:37:10 +0000
commit033e4303d35140eb18c9973d3f63e1c8f50d7cd7 (patch)
treec3d52d4e03171992594e3959c93834bfe8fb0518 /meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.21/tls_m4.patch
parent2c05c868a08516b1fa4156b9d668d8ad1bcd8eae (diff)
downloadpoky-033e4303d35140eb18c9973d3f63e1c8f50d7cd7.tar.gz
pulseaudio: upgrade to version 0.9.21
There is a bug in pulseaudio uptream which uses new instructions on old arm platform. So we keep arm version of pulseaudio unchanged. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.21/tls_m4.patch')
-rw-r--r--meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.21/tls_m4.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.21/tls_m4.patch b/meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.21/tls_m4.patch
new file mode 100644
index 0000000000..a8292b2e1c
--- /dev/null
+++ b/meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.21/tls_m4.patch
@@ -0,0 +1,32 @@
1Derived from OE by Dongxiao Xu <dongxiao.xu@intel.com>
2
3Index: pulseaudio-0.9.15/m4/tls.m4
4===================================================================
5--- pulseaudio-0.9.15.orig/m4/tls.m4 2008-08-19 23:25:02.000000000 +0200
6+++ pulseaudio-0.9.15/m4/tls.m4 2009-07-10 09:55:25.266365511 +0200
7@@ -1,12 +1,19 @@
8 AC_DEFUN([CC_CHECK_TLS], [
9 AC_CACHE_CHECK([whether $CC knows __thread for Thread-Local Storage],
10 cc_cv_tls___thread,
11- [AC_COMPILE_IFELSE(
12- AC_LANG_PROGRAM(
13- [[static __thread int a = 6;]],
14- [[a = 5;]]),
15- [cc_cv_tls___thread=yes],
16- [cc_cv_tls___thread=no])
17+ [AC_LINK_IFELSE([__thread int a; int b; int main() { return a = b; }],
18+ [chktls_save_LDFLAGS="$LDFLAGS"
19+ LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
20+ chktls_save_CFLAGS="$CFLAGS"
21+ CFLAGS="-fPIC $CFLAGS"
22+ dnl If -shared works, test if TLS works in a shared library.
23+ AC_LINK_IFELSE([int f() { return 0; }],
24+ AC_LINK_IFELSE([__thread int a; int b; int f() { return a = b; }],
25+ [cc_cv_tls___thread=yes],
26+ [cc_cv_tls___thread=no]),
27+ [cc_cv_tls___thread=yes])
28+ CFLAGS="$chktls_save_CFLAGS"
29+ LDFLAGS="$chktls_save_LDFLAGS"], [cc_cv_tls___thread=no])
30 ])
31
32 AS_IF([test "x$cc_cv_tls___thread" = "xyes"],