A static library (MacOS .a package) is made out of several object files (compiled source code .o files). From the Xcode output I can verify that .o files were built using debug symbols (-g flag used), moreover, running dwarfdump file.o
prints out debug information.
When all the object files are gathered together in a .a package dwardump libname.a
returns nothing. Does this mean that debug symbols were stripped out on packaging stage? (which is achieved by invoking libtool
with the flags: -static -arch_only x86_64
)
If this is the case, how can I re-enable debug symbols in .a package?