diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-07-06 13:27:07 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-07 13:45:32 +0100 |
commit | 2c79c9eb7ef8ef0aef8c3096c3c4387e28e56ea2 (patch) | |
tree | a0da0ced42738f92640a40232170e720960c1108 /meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.23/tls_m4.patch | |
parent | 760eace4a53dcc18a74bc6759535fe6cd108cb1f (diff) | |
download | poky-2c79c9eb7ef8ef0aef8c3096c3c4387e28e56ea2.tar.gz |
pulseaudio: add 0.9.23
Older version have been retained to allow more testing of this release
(From OE-Core rev: f1fc6d084b079dea21ff1a30b815496452042490)
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.23/tls_m4.patch')
-rw-r--r-- | meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.23/tls_m4.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.23/tls_m4.patch b/meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.23/tls_m4.patch new file mode 100644 index 0000000000..bae0a259ce --- /dev/null +++ b/meta/recipes-multimedia/pulseaudio/pulseaudio-0.9.23/tls_m4.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | Derived from OE by Dongxiao Xu <dongxiao.xu@intel.com> | ||
2 | |||
3 | Upstream-Status: Inappropriate [configuration] | ||
4 | |||
5 | Index: pulseaudio-0.9.15/m4/tls.m4 | ||
6 | =================================================================== | ||
7 | --- pulseaudio-0.9.15.orig/m4/tls.m4 2008-08-19 23:25:02.000000000 +0200 | ||
8 | +++ pulseaudio-0.9.15/m4/tls.m4 2009-07-10 09:55:25.266365511 +0200 | ||
9 | @@ -1,12 +1,19 @@ | ||
10 | AC_DEFUN([CC_CHECK_TLS], [ | ||
11 | AC_CACHE_CHECK([whether $CC knows __thread for Thread-Local Storage], | ||
12 | cc_cv_tls___thread, | ||
13 | - [AC_COMPILE_IFELSE( | ||
14 | - AC_LANG_PROGRAM( | ||
15 | - [[static __thread int a = 6;]], | ||
16 | - [[a = 5;]]), | ||
17 | - [cc_cv_tls___thread=yes], | ||
18 | - [cc_cv_tls___thread=no]) | ||
19 | + [AC_LINK_IFELSE([__thread int a; int b; int main() { return a = b; }], | ||
20 | + [chktls_save_LDFLAGS="$LDFLAGS" | ||
21 | + LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS" | ||
22 | + chktls_save_CFLAGS="$CFLAGS" | ||
23 | + CFLAGS="-fPIC $CFLAGS" | ||
24 | + dnl If -shared works, test if TLS works in a shared library. | ||
25 | + AC_LINK_IFELSE([int f() { return 0; }], | ||
26 | + AC_LINK_IFELSE([__thread int a; int b; int f() { return a = b; }], | ||
27 | + [cc_cv_tls___thread=yes], | ||
28 | + [cc_cv_tls___thread=no]), | ||
29 | + [cc_cv_tls___thread=yes]) | ||
30 | + CFLAGS="$chktls_save_CFLAGS" | ||
31 | + LDFLAGS="$chktls_save_LDFLAGS"], [cc_cv_tls___thread=no]) | ||
32 | ]) | ||
33 | |||
34 | AS_IF([test "x$cc_cv_tls___thread" = "xyes"], | ||