There are always a few funny clips during long stages of the Tour de France, Giro d'Italia, etc... where they show riders going to the back of the group to have a whiz. In some races, they all agree to stop and line up along the side of the road.
Well my strategy has always to just pull over to the side of the trail or pull the bottom of my shorts to the side and make squiggly lines in the dirt.