after stripping all debugging symbols in static lib, final link fails - C / C++ - strip linux librar


FS#13592 : Strip shared libraries by default strip linux librar

So, how to strip a shared library? --strip-unneeded states that it removes all symbols that are not needed for relocation processing. This is a little.

So the solution we have for now is as follows: test.cpp #include #include #include struct private_struct { float f; };.

strip is a GNU utility to "strip" symbols from object files. The list of object files provided to strip may include archives and at least one object file must be provided. When stripping symbols, keep symbol symbolname even if it would normally be stripped.

strip modifies the files named in its argument, rather than writing modified copies under different names.