summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2012-12-08 15:26:41 +0000
committerAlexis Ballier <aballier@gentoo.org>2012-12-08 15:26:41 +0000
commit24df27475384caaf561efdbe40b26c50b6ccdf59 (patch)
tree5dbf8cdcc28f48e16cee6b8d76468da904617d57 /x11-libs/libva-intel-driver/files
parent[bump] virtual/perl-IO-Compress-2.58.0 (diff)
downloadgentoo-2-24df27475384caaf561efdbe40b26c50b6ccdf59.tar.gz
gentoo-2-24df27475384caaf561efdbe40b26c50b6ccdf59.tar.bz2
gentoo-2-24df27475384caaf561efdbe40b26c50b6ccdf59.zip
backport upstream patch to avoid underlinking, bug #443934
(Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
Diffstat (limited to 'x11-libs/libva-intel-driver/files')
-rw-r--r--x11-libs/libva-intel-driver/files/libm.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/x11-libs/libva-intel-driver/files/libm.patch b/x11-libs/libva-intel-driver/files/libm.patch
new file mode 100644
index 000000000000..0def10f585a8
--- /dev/null
+++ b/x11-libs/libva-intel-driver/files/libm.patch
@@ -0,0 +1,27 @@
+commit eb39abb70886d9277cf7d5114125cb7b22e7c362
+Author: Joe Konno <joe.konno@intel.com>
+Date: Tue Nov 20 07:42:27 2012 -0800
+
+ configure: add missing dependency to libm.
+
+ Build broke when trying to compile with expressive debug CFLAGS (-g3).
+ This was root-caused to the lack of the "-lm" linker flag. By adding a
+ simple autoconf check we ensure that libm is linked.
+
+ More specifically, recent VEBOX changes depend on cos() and sin() math
+ functions.
+
+ Signed-off-by: Joe Konno <joe.konno@intel.com>
+
+diff --git a/configure.ac b/configure.ac
+index 4427839..2655d74 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -64,6 +64,7 @@ AM_PROG_CC_C_O
+ AC_C_BIGENDIAN
+ AC_HEADER_STDC
+ AC_SYS_LARGEFILE
++AC_CHECK_LIB([m], [sin])
+
+ LIBVA_PACKAGE_VERSION=libva_package_version
+ AC_SUBST(LIBVA_PACKAGE_VERSION)