mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
Add an arHostRule2 to build host .a files
Fixes building on 64-bit hosts svn path=/trunk/; revision=32618
This commit is contained in:
parent
204f88a1f3
commit
54ab4d0d04
1 changed files with 7 additions and 1 deletions
|
@ -1250,6 +1250,9 @@ Rule arRule1 ( "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).a:
|
|||
Rule arRule2 ( "\t$(ECHO_AR)\n"
|
||||
"\t${ar} -rc $@ $($(module_name)_OBJS)\n",
|
||||
NULL );
|
||||
Rule arHostRule2 ( "\t$(ECHO_AR)\n"
|
||||
"\t${host_ar} -rc $@ $($(module_name)_OBJS)\n",
|
||||
NULL );
|
||||
Rule gasRule ( "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_$(module_name).o: $(source) ${$(module_name)_precondition}$(dependencies) | $(INTERMEDIATE)$(SEP)$(source_dir)\n"
|
||||
"\t$(ECHO_GAS)\n"
|
||||
"\t${gcc} -x assembler-with-cpp -c $< -o $@ -D__ASM__ $($(module_name)_CFLAGS)\n",
|
||||
|
@ -1861,7 +1864,10 @@ MingwModuleHandler::GenerateArchiveTarget ()
|
|||
delete definitionFilename;
|
||||
}
|
||||
|
||||
arRule2.Execute ( fMakefile, backend, module, archiveFilename, clean_files );
|
||||
if(module.type == HostStaticLibrary)
|
||||
arHostRule2.Execute ( fMakefile, backend, module, archiveFilename, clean_files );
|
||||
else
|
||||
arRule2.Execute ( fMakefile, backend, module, archiveFilename, clean_files );
|
||||
|
||||
GenerateCleanObjectsAsYouGoCode ();
|
||||
|
||||
|
|
Loading…
Reference in a new issue