Make gmp library work with gcc10

I’ve installed gcc10 and I’ve installed the gmp library - but the gmp library is build against gcc9 and unavailable when gcc10 is active. Can I somehow override the gmp library to target gcc10?