mesa3d-demos: select libglew/libglu if needed
authorPeter Korsgaard <peter@korsgaard.com>
Tue, 5 Jan 2016 08:19:38 +0000 (09:19 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 5 Jan 2016 08:22:00 +0000 (09:22 +0100)
Fixes:
http://autobuild.buildroot.net/results/4b1/4b16c9797c653c248725a55d9b8eafc4634b968c/build-end.log

libglew/libglu are added to _DEPENDENCIES for X11+GL, but not selected at
the kconfig level.

While we're at it, correct the dependencies for the X11 selects as well
(only used if GL is available).

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/mesa3d-demos/Config.in

index d63c47b324622ddda1ea3905dfb98c7a0dd92494..f22c0dee917f2aa51dcd0e8159264e6c0e0d185e 100644 (file)
@@ -1,7 +1,9 @@
 config BR2_PACKAGE_MESA3D_DEMOS
        bool "mesa3d-demos"
-       select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7
-       select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7
+       select BR2_PACKAGE_LIBGLEW if BR2_PACKAGE_XORG7 && BR2_PACKAGE_HAS_LIBGL
+       select BR2_PACKAGE_LIBGLU if BR2_PACKAGE_XORG7 && BR2_PACKAGE_HAS_LIBGL
+       select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7 && BR2_PACKAGE_HAS_LIBGL
+       select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7 && BR2_PACKAGE_HAS_LIBGL
        depends on BR2_PACKAGE_HAS_LIBGL || BR2_PACKAGE_HAS_LIBGLES \
                || BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBOPENVG
        help