Creating toolchain for NVIDIA jetson by correctly linking to the graphics library that should be used
The current Libglx.so library in L4T that is installed comes into conflict and the detection of the GPU is not correct
Using "$ {CMAKE_SHARED_LINKER_FLAGS}" for separate linker -Bsymbolic.
Previously it ignored to the previous declared flags it does not find them. for this gave error with some linkers flags
Not sure why not needed before when updated my toolchain to NDK15 now no found -landroid and error: cannot open crtbegin_dynamic.o: No such file or directory
So we pull it safe in case not detect sysroot properly.
Use the same flags from android-x86 project load fine in marsmallow and nougat tested android-x86 images and avd images
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-fatal-warnings -Wl,-Bsymbolic")
By default mesa3d run Opengl 3.0 context and GLSL 1.30 so we needed force Opengl 3.3 context and run Ok HW tesselation
this script is workaround for that function work in mesa3d