Bolt it down for the best safety reasons. Don't want a subwoofer box in your face if you get in a wreck.
I've also seen Velcro. Seems to actually work ok. Saw it used on a battery. That sucker wouldn't budge. Was adhered via 3 out of 6 surfaces though. Probably won't help during accidents. But should do the trick for turning/speed bumps.