add "nostdlib" option to libtcc

This commit is contained in:
Gabriel Corneanu 2012-04-18 09:48:57 +02:00
parent 16202e054f
commit 176876e5de
1 changed files with 2 additions and 0 deletions

View File

@ -1489,6 +1489,8 @@ PUB_FUNC const char * tcc_set_linker(TCCState *s, char *option, int multi)
end = NULL;
if (link_option(option, "Bsymbolic", &p)) {
s->symbolic = TRUE;
} else if (link_option(option, "nostdlib", &p)) {
s->nostdlib = TRUE;
} else if (link_option(option, "fini=", &p)) {
s->fini_symbol = p;
if (s->warn_unsupported)