mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
Do not put .h files in object files, it causes problems at link time
svn path=/trunk/; revision=29176
This commit is contained in:
parent
c27dad3928
commit
5dc2b7e865
1 changed files with 8 additions and 6 deletions
|
@ -500,7 +500,7 @@ MingwModuleHandler::GetObjectFilename (
|
|||
else if ( module.type == RpcClient )
|
||||
newExtension = "_c.o";
|
||||
else
|
||||
newExtension = ".h";
|
||||
return NULL;
|
||||
}
|
||||
else
|
||||
newExtension = ".o";
|
||||
|
@ -913,11 +913,13 @@ MingwModuleHandler::GenerateObjectMacros (
|
|||
CompilationUnit& compilationUnit = *compilationUnits[i];
|
||||
if ( !compilationUnit.IsFirstFile () )
|
||||
{
|
||||
fprintf (
|
||||
fMakefile,
|
||||
"%s%s",
|
||||
( i%10 == 9 ? " \\\n\t" : " " ),
|
||||
backend->GetFullName ( *GetObjectFilename ( compilationUnit.GetFilename (), NULL ) ).c_str () );
|
||||
const FileLocation *objectFilename = GetObjectFilename ( compilationUnit.GetFilename (), NULL );
|
||||
if ( objectFilename )
|
||||
fprintf (
|
||||
fMakefile,
|
||||
"%s%s",
|
||||
( i%10 == 9 ? " \\\n\t" : " " ),
|
||||
backend->GetFullName ( *objectFilename ).c_str () );
|
||||
}
|
||||
}
|
||||
fprintf ( fMakefile, "\n" );
|
||||
|
|
Loading…
Reference in a new issue