diff options
author | Tom Zanussi <tom.zanussi@intel.com> | 2010-12-27 16:32:21 -0600 |
---|---|---|
committer | Tom Zanussi <tom.zanussi@intel.com> | 2010-12-27 16:32:21 -0600 |
commit | af40e14ce335fa689d1a989feba3c02a8c71b7a7 (patch) | |
tree | 90ce1d53eb63627d90ec7f081b680a66c92e8705 /meta-emenlow/recipes-graphics/libva/libva-0.31.0/102_attribute_visibility.patch | |
parent | ba8b8a99fd1598d0ce2cbaa69e9d16358d1ff5db (diff) | |
download | meta-intel-af40e14ce335fa689d1a989feba3c02a8c71b7a7.tar.gz |
meta-emenlow: move to meta-intel repo from poky repo
This is the meta-emenlow layer, moved from the poky repo in order to
keep all the meta-intel BSPs together.
This version builds against laverne (0.90) - detailed build
instruction can be found in the README file.
Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Diffstat (limited to 'meta-emenlow/recipes-graphics/libva/libva-0.31.0/102_attribute_visibility.patch')
-rw-r--r-- | meta-emenlow/recipes-graphics/libva/libva-0.31.0/102_attribute_visibility.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-emenlow/recipes-graphics/libva/libva-0.31.0/102_attribute_visibility.patch b/meta-emenlow/recipes-graphics/libva/libva-0.31.0/102_attribute_visibility.patch new file mode 100644 index 00000000..2885ab7b --- /dev/null +++ b/meta-emenlow/recipes-graphics/libva/libva-0.31.0/102_attribute_visibility.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | commit 8d0004cbd40305114bbe8019122319b43d25a772 | ||
2 | Author: Gwenole Beauchesne <gbeauchesne@splitted-desktop.com> | ||
3 | Date: Tue Sep 8 12:34:39 2009 +0000 | ||
4 | |||
5 | Fix ATTRIBUTE_HIDDEN definition if __attribute__((visibility("hidden"))) is not supported. | ||
6 | |||
7 | commit 7a8bf489ffd436d853364dd0d3c9a6734b8cc7eb | ||
8 | Author: Gwenole Beauchesne <gbeauchesne@splitted-desktop.com> | ||
9 | Date: Thu Sep 3 15:46:37 2009 +0000 | ||
10 | |||
11 | Check for __attribute__((visibility("hidden"))). | ||
12 | |||
13 | diff --git a/configure.ac b/configure.ac | ||
14 | index da96872..abef435 100644 | ||
15 | --- a/configure.ac | ||
16 | +++ b/configure.ac | ||
17 | @@ -132,6 +132,30 @@ if test x$enable_i965_driver = xyes && ! $PKG_CONFIG --atleast-version=2.4 libdr | ||
18 | fi | ||
19 | AM_CONDITIONAL(BUILD_I965_DRIVER, test x$enable_i965_driver = xyes) | ||
20 | |||
21 | +dnl Check for __attribute__((visibility())) | ||
22 | +AC_CACHE_CHECK([whether __attribute__((visibility())) is supported], | ||
23 | + libva_cv_visibility_attribute, | ||
24 | + [cat > conftest.c <<EOF | ||
25 | +int foo __attribute__ ((visibility ("hidden"))) = 1; | ||
26 | +int bar __attribute__ ((visibility ("protected"))) = 1; | ||
27 | +EOF | ||
28 | + libva_cv_visibility_attribute=no | ||
29 | + if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then | ||
30 | + if grep '\.hidden.*foo' conftest.s >/dev/null; then | ||
31 | + if grep '\.protected.*bar' conftest.s >/dev/null; then | ||
32 | + libva_cv_visibility_attribute=yes | ||
33 | + fi | ||
34 | + fi | ||
35 | + fi | ||
36 | + rm -f conftest.[cs] | ||
37 | +]) | ||
38 | +ATTRIBUTE_HIDDEN="" | ||
39 | +if test $libva_cv_visibility_attribute = yes; then | ||
40 | + ATTRIBUTE_HIDDEN="__attribute__((visibility(\"hidden\")))" | ||
41 | +fi | ||
42 | +AC_DEFINE_UNQUOTED([ATTRIBUTE_HIDDEN], [$ATTRIBUTE_HIDDEN], | ||
43 | + [Defined to __attribute__((visibility("hidden"))) when available]) | ||
44 | + | ||
45 | # We only need the headers, we don't link against the DRM libraries | ||
46 | LIBVA_CFLAGS="$DRM_CFLAGS" | ||
47 | AC_SUBST(LIBVA_CFLAGS) | ||