How to tell whether .o was compiled with -g option?

Run
file foobar.o

If it says "not stripped", it was compiled with -g.

I'm sure this is not 100% accurate (in either direction), but it's one
hint, anyway.

Best,
karl


Reply via email to