C++ User's Guide

-s

Strips the symbol table from the executable file.

This option removes all symbol information from output executable files. This option is passed to ld.