If you choose to roll for starting gold for your class, do you get starting equipment from your background as well?

Say you choose to roll for starting gold for your class (and then buy equipment).

Do you still get the starting equipment from your background (but not from your class)?
Or do you not get any starting equipment at all, from either your class or your background?

Is it just up to the DM?