I’m thinking that by adding extras on the commandline twice you overwrote the option, rather than added to it. If you want to have multiple extras, you need to specify it once with comma separation: “extras=mpi,static”
Note that in combining these two particular settings you need to be careful that the MPI libraries and environment on your system are set up for static compilation. Settings that work for dynamic linkage may not work for static linkage, and that’s entirely dependent on your MPI library installation.