this.duplicateTo(linker);
linker.link(srcList);
}
public CompilerAdapter findCompilerAdapter() {
CompilerAdapter compilerAdapter;
String cc;
cc=project.getProperty("build.compiler.cc");
if( cc!=null ) {
if( "cc".equals( cc ) ) {
compilerAdapter=new CcCompiler();
compilerAdapter.setSoTask( this );
return compilerAdapter;
}
if( "gcj".equals( cc ) ) {
compilerAdapter=new GcjCompiler();
compilerAdapter.setSoTask( this );
return compilerAdapter;
}
if( cc.indexOf("mwccnlm") != -1 ) {
compilerAdapter=new MwccCompiler();
compilerAdapter.setSoTask( this );
return compilerAdapter;
}
if( cc.indexOf("cl") != -1 ) {
compilerAdapter=new MsvcCompiler();
compilerAdapter.setSoTask( this );
return compilerAdapter;
}
}
compilerAdapter=new LibtoolCompiler();
compilerAdapter.setSoTask( this );
return compilerAdapter;
}