libtcc: support more than one crtprefix

Looks like gcc has that.  Oh Deer!
This commit is contained in:
grischka
2011-08-06 16:49:30 +02:00
parent e6f3bf7f08
commit e844fb11c2
5 changed files with 39 additions and 45 deletions

View File

@ -1247,7 +1247,7 @@ ST_FUNC void tcc_add_runtime(TCCState *s1)
#endif
/* add crt end if not memory output */
if (s1->output_type != TCC_OUTPUT_MEMORY)
tcc_add_file(s1, TCC_CRTO("crtn.o"));
tcc_add_crt(s1, "crtn.o");
}
}