mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-26 08:00:09 +08:00
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
4
libtcc.c
4
libtcc.c
@ -1560,6 +1560,10 @@ static int tcc_set_linker(TCCState *s, const char *option)
|
||||
} else
|
||||
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)) {
|
||||
s->rpath = copy_linker_arg(p);
|
||||
} else if (link_option(option, "section-alignment=", &p)) {
|
||||
|
Loading…
Reference in New Issue
Block a user