No, you can't. A static library is simply a collection of object files and the object files within the static library have no special privileges over those using the static library.
You can obviously strip
the final binary.
If you must hide symbols then they need to be static
, which forces you to use fewer implementations files to allow the symbol to be shared, which is inconvenient.