Linux: Building SDL2 locally @Version: 4.24


I am trying to build sources with local SDL2 changes. I managed to build SDL2 but when building editor, I get the following errors:

Performing 2 actions (12 in parallel)
[1/2] Link (lld) CrashReportClient
ld.lld: error: undefined symbol: wl_proxy_get_version

referenced by xdg-shell-client-protocol.h:482 (/UnrealEngine/Engine/Source/ThirdParty/SDL2/build-SDL-gui-backend-Release/wayland-generated-protocols/xdg-shell-client-protocol.h:482)
SDL_waylandvideo.c.o:(Wayland_VideoQuit) in archive /UnrealEngine/Engine/Source/ThirdParty/SDL2/SDL-gui-backend/lib/Linux/x86_64-unknown-linux-gnu/libSDL2.a

I am using 4.24 branch as I need OpenGL support.