-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 11 February 2003 09:06, Nugzar Nebieridze wrote: > I am quite new to Linux developing as I come from Windows / > Visual C++. I got interested in Gentoo because it offers > excellent features for developers who want to learn how to write > software under Linux. > > I am interested in creating a DEBUG version of Gentoo Linux, so that > all the software should include debug symbols (for GDB for example). > > Which compiler flags should I use for that? Can I add some > optimizations also or it is impossible to have debug info with > optimized versions? Have you any suggestions?
Well to get gcc to compile with debug you use the "-g" option... add this to your CFLAGS/CXXFLAGS in /etc/make.conf to generate the debug info. This is where I got it from, so you can look for more info - 'man gcc': -g Produce debugging information in the operating system's native for- mat (stabs, COFF, XCOFF, or DWARF). GDB can work with this debug- ging information. Alex - -- Microsoft is not the answer. Microsoft is the question. NO (or Linux) is the answer. (Taken from a .signature from someone from the UK, source unknown) [I take no responsibility for the tagline - it is randomly generated] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+SQI+v783r1bg6z8RAoemAKCumJaVKQSEp7POiVfkBEvwozwnLgCfWvoD FCEC+8l93i/vSXPeZSDeCoo= =dhOm -----END PGP SIGNATURE----- -- [EMAIL PROTECTED] mailing list