clang.patch 667 B

12345678910111213141516171819
  1. # Fixes the default linker options for portage
  2. # Upstream commit ba286136bf8e48c71ffd6c2fd9ce97e64a6eeeb1
  3. diff --git a/libtcc.c b/libtcc.c
  4. index 127806f..dc78643 100644
  5. --- a/libtcc.c
  6. +++ b/libtcc.c
  7. @@ -1560,6 +1560,10 @@ static int tcc_set_linker(TCCState *s, const char *option)
  8. } else
  9. goto err;
  10. + } else if (link_option(option, "as-needed", &p)) {
  11. + ignoring = 1;
  12. + } else if (link_option(option, "O", &p)) {
  13. + ignoring = 1;
  14. } else if (link_option(option, "rpath=", &p)) {
  15. s->rpath = copy_linker_arg(p);
  16. } else if (link_option(option, "section-alignment=", &p)) {