summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.22/tls_m4.patch
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2010-12-27 16:57:29 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-30 12:06:53 +0000
commitac36c6305a11cf1cf804e08c50773ed7e0052438 (patch)
tree0b6e0a28f71a496cbe357576dac67cb200c2ea47 /meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.22/tls_m4.patch
parent40806b169676f186c02e4a866e43c4baa8faec2a (diff)
downloadpoky-ac36c6305a11cf1cf804e08c50773ed7e0052438.tar.gz
pulseaudio: upgrade to version 0.9.22
upgrade from 0.9.21 to 0.9.22 Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.22/tls_m4.patch')
-rw-r--r--meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.22/tls_m4.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.22/tls_m4.patch b/meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.22/tls_m4.patch
new file mode 100644
index 0000000000..a8292b2e1c
--- /dev/null
+++ b/meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.22/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"],