libtcc: ignore linker optizimization and as-needed options. This allows compiling some packages from Gentoo's portage
This commit is contained in:
parent
361ec4f98e
commit
ba286136bf
1 changed files with 4 additions and 0 deletions
4
libtcc.c
4
libtcc.c
|
@ -1560,6 +1560,10 @@ static int tcc_set_linker(TCCState *s, const char *option)
|
||||||
} else
|
} else
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
|
} else if (link_option(option, "as-needed", &p)) {
|
||||||
|
ignoring = 1;
|
||||||
|
} else if (link_option(option, "O", &p)) {
|
||||||
|
ignoring = 1;
|
||||||
} else if (link_option(option, "rpath=", &p)) {
|
} else if (link_option(option, "rpath=", &p)) {
|
||||||
s->rpath = copy_linker_arg(p);
|
s->rpath = copy_linker_arg(p);
|
||||||
} else if (link_option(option, "section-alignment=", &p)) {
|
} else if (link_option(option, "section-alignment=", &p)) {
|
||||||
|
|
Loading…
Reference in a new issue