I just started coding in C, and ran someone else's Makefile with the default C compiler set to gcc. I am on Mac OSX 10.8 Mountain Lion and I believe I installed the compiler with "XCode Command Line Tools." After running "make" on command line, I get these annoying .dSYM files for each program. I read that these are debug files, but are they really necessary? Is there any way to prevent them from being generated from command line?
Macos – .dSYM files generated from command line (Mac)
cdsymgccmacosmakefile
Related Topic
- Xcode – How to install Xcode Command Line Tools
- Xcode – OSX 10.8, Xcode 4.4 Make and gcc gone from environment
- Macos – OS X 10.8 – error trying to exec ‘/usr/bin/i686-apple-darwin11-gcc-4.2.1’ – installing json gem
- GCC-4.2 error on Mac OSX Mountain Lion, unable to install thesql-python
- Iphone – Bring up Keyboard for cell in UITableView
Best Answer
The
-g
flag to GCC will generate debug symbols. You may simply remove that flag fromCFLAGS
.