My thoughts on this are if you have no choice just let it happen. If you must do it on purpose, it would be best to not call attention to yourself. Like avoid squatting, loud grunting, sticking your butt out etc. Also perhaps be making your way to a bathroom or other suitable place to change so others don't have to smell you.