ktcc: fixed relocatable object generation bug (parameter -r).
git-svn-id: svn://kolibrios.org@9845 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
3f52f417fc
commit
03b266bde4
@ -331,7 +331,7 @@ int main(int argc, char **argv)
|
||||
if (tcc_add_file(s, filename, filetype) < 0)
|
||||
ret = 1;
|
||||
else
|
||||
if (s->output_type == TCC_OUTPUT_OBJ) {
|
||||
if (s->output_type == TCC_OUTPUT_OBJ && !s->option_r) {
|
||||
ret = !!tcc_output_file(s, s->outfile);
|
||||
if (s->gen_deps && !ret)
|
||||
gen_makedeps(s, s->outfile, s->deps_outfile);
|
||||
@ -360,7 +360,8 @@ int main(int argc, char **argv)
|
||||
#endif
|
||||
} else
|
||||
if (s->output_type == TCC_OUTPUT_EXE ||
|
||||
s->output_type == TCC_OUTPUT_DLL)
|
||||
s->output_type == TCC_OUTPUT_DLL ||
|
||||
(s->output_type == TCC_OUTPUT_OBJ && s->option_r))
|
||||
{
|
||||
ret = !!tcc_output_file(s, s->outfile);
|
||||
if (s->gen_deps && !ret)
|
||||
|
Loading…
Reference in New Issue
Block a user