How to build static libraries?

I am building opencv 4.6.0. I tried -D BUILD_SHARED_LIBS=OFF but it still generate dynamic libraries (*.so).
Is there anything else I can do?
Thanks

crosspost: Cannot build Opencv as static libraries - Stack Overflow