Thanks for the reply... OPenGL ES is getting loaded and I can see some commands running through...

Runing the command for libmain.so without the -lGL runs into rough weather but these functions are'nt supported in any of the libGLES*.so files in ~/Android/Sdk/ndk/21.0.6113669/platforms/android-24/arch-x86_64/usr/lib64 by running nm -C -A command

libGLESv1_CM.so
libGLESv2.so
libGLESv3.so

../../../../android/bin/arm64/Release/mame_tiny/libosd_sdl.a(drawogl.o): In function `renderer_ogl::draw(int)':
drawogl.cpp:(.text._ZN12renderer_ogl4drawEi+0x124): undefined reference to `glClearDepth'
drawogl.cpp:(.text._ZN12renderer_ogl4drawEi+0x24c): undefined reference to `glOrtho'
drawogl.cpp:(.text._ZN12renderer_ogl4drawEi+0x390): undefined reference to `glEnd'
drawogl.cpp:(.text._ZN12renderer_ogl4drawEi+0x3a0): undefined reference to `glEnd'
drawogl.cpp:(.text._ZN12renderer_ogl4drawEi+0x5b4): undefined reference to `glBegin'
drawogl.cpp:(.text._ZN12renderer_ogl4drawEi+0x5c8): undefined reference to `glVertex2f'
drawogl.cpp:(.text._ZN12renderer_ogl4drawEi+0x5d8): undefined reference to `glVertex2f'
drawogl.cpp:(.text._ZN12renderer_ogl4drawEi+0x5ec): undefined reference to `glVertex2f'
drawogl.cpp:(.text._ZN12renderer_ogl4drawEi+0x644): undefined reference to `glEnd'
../../../../android/bin/arm64/Release/mame_tiny/libosd_sdl.a(drawogl.o): In function `renderer_ogl::texture_mpass_flip(ogl_texture_info*, int)':
drawogl.cpp:(.text._ZN12renderer_ogl18texture_mpass_flipEP16ogl_texture_infoi+0x180): undefined reference to `glPopAttrib'
drawogl.cpp:(.text._ZN12renderer_ogl18texture_mpass_flipEP16ogl_texture_infoi+0x1ec): undefined reference to `glPushAttrib'
drawogl.cpp:(.text._ZN12renderer_ogl18texture_mpass_flipEP16ogl_texture_infoi+0x220): undefined reference to `glPopAttrib'