What do you do when you build a tolerance to medication?

Depends on med. It depends on the type of medication. Some medications will require that the dose be increased to obtain the same effects, such as pain medications. Other medications will require you to be changed to another medication in the same class or sometimes even a completely different class of medication.