Don't use clib4. Use newlib. glfw/raylib doesn't needs any particular C libary. Most of the code is from OS4 SDK. However if you receive the error you are using an invalid C runtime this means that your adtools gcc is not up to date. That's why in the past i've used clib2 as name so the actual gcc can use the library without any change. You have two solutions now to use clib4. Use docker image with adtools up to date or compile your own version on linux/wsl2/cygwin and use it. But if you want to use just raylib go with newlib.
Just tested a fresh cmake configuration and make and everything is working correctly on branch amigaOS (version 4.5) Can you try to redownload everything and compile?
You don't have to give up. You have only to bang your head ant continue to try. Today with all help you can find on internet it is more easy than 30 years ago..
And in my raylib github page now there are two branches 4.5 and 5.0 that are both working correctly (even with AHI audio) with latest glfw changes. Feel free to test them.
I don't think official changes was never pushed to uboot repo.. It is not in "amiga style" publishing changes open source.. So the only way is try to find something can help. That's why we are in such big troubles..
new version. Remember to copy (and overwrite) clib4.library to libs:
@Maijestro technically you can't because this SDL2 version is patched to use GL4ES. *but* Theoretically you could download the non SDL2 so object from here: https://github.com/AmigaLabs/libs-ports/tree/main/sdl2 rename it and overwrite the existent one in SOBJS file of scummvm for clib4. it *should* work. Feel free to test it
I've used my version with clib4. (in the meanwhile i've also fixed the crash at exit and I'll reupload soon)
@Raziel I've used SDL2 patched with GL4ES use to gain the maximum speed and compatibility against OpenGL. There are no other way to do this at moment since no one is working to an updated MiniGL version
However for example with Gemini Rue on Sam460 with rain I always get 5fps while on X5000 i get 20fps. I think that something is drawn using software renderer or not optimized
My version is using a patched sdl2 version that use Gl4es. That's why most probably it is so fast compared yours. You should use sdl2+Gl4es and see the difference