[Buildroot] [PATCH 3/3] package/vlc: Improve libGL detection
Bernd Kuhls
bernd.kuhls at t-online.de
Sun Jun 7 16:14:18 UTC 2015
mesa3d defaults to --enable-opengl due to its weird configure.ac:
http://git.buildroot.net/buildroot/commit/package/mesa3d/mesa3d.mk?id=384d601d4ea2c41bb7928f756bfe88af4d38b38b
This leads to include/GL/gl.h and lib/pkgconfig/gl.pc being installed
to STAGING_DIR. These files are enough for vlc to think that libGL.so
is present which it is not in the defconfig being fixed by this patch.
Fixes
http://autobuild.buildroot.net/results/e63/e639dabfb260006acb8a204851b96f9275ce53a7/
Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
---
package/vlc/0008-ac-check-lib-gl.patch | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 package/vlc/0008-ac-check-lib-gl.patch
diff --git a/package/vlc/0008-ac-check-lib-gl.patch b/package/vlc/0008-ac-check-lib-gl.patch
new file mode 100644
index 0000000..7fa46a3
--- /dev/null
+++ b/package/vlc/0008-ac-check-lib-gl.patch
@@ -0,0 +1,18 @@
+Improve libGL detection
+
+The presence of gl.pc does not mean that libGL.so was installed.
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
+
+diff -uNr vlc-2.2.1.org/configure.ac vlc-2.2.1/configure.ac
+--- vlc-2.2.1.org/configure.ac 2015-04-13 09:57:54.000000000 +0200
++++ vlc-2.2.1/configure.ac 2015-06-07 17:35:22.014022842 +0200
+@@ -3054,7 +3054,7 @@
+
+ have_gl="no"
+ PKG_CHECK_MODULES([GL], [gl], [
+- have_gl="yes"
++ AC_CHECK_LIB([GL], [main],[ have_gl="yes"])
+ ], [
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ #ifdef _WIN32
--
1.7.10.4
More information about the buildroot
mailing list