[SCM] vlc/master: Fix build failure on powerpc by correcting the detection of compiler flags for altivec.

bdrung at users.alioth.debian.org bdrung at users.alioth.debian.org
Tue Oct 29 00:12:35 UTC 2013


The following commit has been merged in the master branch:
commit 445f7debd500549d7a6964bfccab37f23a751e1b
Author: Benjamin Drung <bdrung at debian.org>
Date:   Tue Oct 29 01:10:47 2013 +0100

    Fix build failure on powerpc by correcting the detection of compiler flags for altivec.

diff --git a/debian/patches/altivec.patch b/debian/patches/altivec.patch
new file mode 100644
index 0000000..7f88bf7
--- /dev/null
+++ b/debian/patches/altivec.patch
@@ -0,0 +1,15 @@
+Description: Fix detection of compiler flags for altivec on powerpc.
+Author: Benjamin Drung <bdrung at debian.org>
+Bug: https://trac.videolan.org/vlc/ticket/9757
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -1424,6 +1424,8 @@
+         [ac_cv_c_altivec="-faltivec"],
+         dnl Below this are the Linux tests
+         [# Linux/PPC test (gcc 4.x)
++         VLC_RESTORE_FLAGS
++         VLC_SAVE_FLAGS
+          CFLAGS="${CFLAGS} -maltivec"
+          AC_TRY_COMPILE([#include <altivec.h>],
+            [vec_ld(0, (unsigned char *)0);],
diff --git a/debian/patches/series b/debian/patches/series
index 50e6358..894cdda 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 link-binaries-with-c++.patch
 pnap-grammar.patch
+altivec.patch

-- 
VLC media player packaging



More information about the pkg-multimedia-commits mailing list