$ equery f wayland|grep la$ /usr/lib64/libwayland-client.la /usr/lib64/libwayland-cursor.la /usr/lib64/libwayland-server.la The problem was fixed in x11 overlay, but the fix was reverted.
wayland 1.3.91, can you verify? # equery f wayland|grep la$ #
This is fixed in newer versions. I don't care to fix it in 1.2.1.