I guess VirtualGL isn't compatible with the -Wl,--as-needed option passed by the %cmake macto by default.