I found the solution. I share it just in case it can be useful for someone.
In the LDFLAGS , just add the option "-s" or "--strip-all". Example: LDFLAGS="-static-libstdc++ -s"
According to GNU linker (ld) documentation:
-s
--strip-all
Omit all symbol information from the output file.
In summary, symbol information is essential during development and debugging, but for a final product, especially if we're looking to optimize size, it can be removed without affecting the functionality of the executable.