12345678910111213141516171819 |
- # Fixes the default linker options for portage
- # Upstream commit ba286136bf8e48c71ffd6c2fd9ce97e64a6eeeb1
- diff --git a/libtcc.c b/libtcc.c
- index 127806f..dc78643 100644
- --- a/libtcc.c
- +++ b/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)) {
|