Author: hyperion Date: Sun Nov 30 15:26:04 2008 New Revision: 37780
URL: http://svn.reactos.org/svn/reactos?rev=37780&view=rev Log: Default debugging format might not be stabs - pass -gstabs+ instead of -g to gcc. And did you know ld doesn't actually have a -g switch? _Now_ we can upgrade to gcc 4.3.2 After a suggestion by hto from Bugzilla. Dmitry, start doing your own commits already See issue #3922 for more details.
Modified: trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp
Modified: trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/mingw/... ============================================================================== --- trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp [iso-8859-1] (original) +++ trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp [iso-8859-1] Sun Nov 30 15:26:04 2008 @@ -1655,7 +1655,7 @@ backend->GetFullPath ( *pchFilename ).c_str() ); fprintf ( fMakefile, "\t$(ECHO_PCH)\n" ); fprintf ( fMakefile, - "\t%s -o %s %s %s -g %s\n\n", + "\t%s -o %s %s %s -gstabs+ %s\n\n", module.cplusplus ? cppc.c_str() : cc.c_str(), backend->GetFullName ( *pchFilename ).c_str(), module.cplusplus ? cxxflagsMacro.c_str() : cflagsMacro.c_str(), @@ -1894,7 +1894,7 @@ } else globalCflags += " -Wall -Wpointer-arith"; - globalCflags += " -g"; + globalCflags += " -gstabs+"; if ( backend->usePipe ) globalCflags += " -pipe"; if ( !module.allowWarnings ) @@ -1948,7 +1948,7 @@
fprintf ( fMakefile, - "%s_LFLAGS := $(PROJECT_LFLAGS) -g $(%s_LFLAGS)\n", + "%s_LFLAGS := $(PROJECT_LFLAGS) $(%s_LFLAGS)\n", module.name.c_str (), module.name.c_str () ); } @@ -3028,7 +3028,7 @@ backend->GetFullName ( junk_cpy ).c_str (), backend->GetFullName ( junk_tmp ).c_str () );
- fprintf ( fMakefile, "\t${ld} $(%s_LINKFORMAT) %s %s -g -o %s\n", + fprintf ( fMakefile, "\t${ld} $(%s_LINKFORMAT) %s %s -o %s\n", module.buildtype.c_str (), linkDepsMacro.c_str (), backend->GetFullName ( junk_tmp ).c_str (), @@ -3568,7 +3568,7 @@
fprintf ( fMakefile, "\t$(ECHO_BOOTPROG)\n" );
- fprintf ( fMakefile, "\t${gcc} $(%s_LINKFORMAT) %s %s -g -o %s\n", + fprintf ( fMakefile, "\t${gcc} $(%s_LINKFORMAT) %s %s -gstabs+ -o %s\n", module.buildtype.c_str(), objectsMacro.c_str(), libsMacro.c_str(),