package/imx-gpu-viv: add dependency to BR2_INSTALL_LIBSTDCPP to examples
authorHeiko Thiery <heiko.thiery@gmail.com>
Thu, 20 May 2021 06:54:29 +0000 (08:54 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Thu, 20 May 2021 07:14:02 +0000 (09:14 +0200)
The examples require libstdc++.so.6 so add the required dependency to
the Config.in.

  ./tiger: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/freescale-imx/imx-gpu-viv/Config.in

index 6668ee8bb5e16dfa6b83e8654a6c4683c6386aec..ca46c5036f3eeafb171c108bd8e26e7b61fa9466 100644 (file)
@@ -84,11 +84,17 @@ config BR2_PACKAGE_PROVIDES_LIBOPENVG
 
 config BR2_PACKAGE_IMX_GPU_VIV_EXAMPLES
        bool "install examples"
+       # example binaries are linked against libstdc++.so.6
+       depends on BR2_INSTALL_LIBSTDCPP
        help
          Copy the Vivante examples to the target.
 
          Warning: examples take approximately 150 MB of disk space.
 
+comment "imx-gpu-viv-examples need a toolchain w/ C++ support"
+    depends on !BR2_INSTALL_LIBSTDCPP
+
+
 config BR2_PACKAGE_IMX_GPU_VIV_GMEM_INFO
        bool "install gmem_info tool"
        help