At a minimum -lXext, but probably needs -lX11 as well, and maybe others.
Sorry, this should be XFree86. My mistake.
XFree86-4.3.0-libXrandr-sharedreqs.patch should fix this. It's in 4.3.0-22.
Please test and close as RAWHIDE if fixed now. I'm going to leave it open
in case I remember to readelf the generated lib.
[mharris@devel Xrandr]$ ldd libXrandr.so.2.0
libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x40019000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40022000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40030000)
libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
libdl.so.2 => /lib/libdl.so.2 (0x4010f000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
This is from 4.3.0-22. Oddly, while the library is now showing that it
is properly linked, readelf -s still shows render functions as UND.
Not sure if it's worth the time and effort to troubleshoot that however
unless it causes a real legitimate bug or problem. Might be best reported
Closing bug as fixed in 4.3.0-22 in rawhide.