diff options
Diffstat (limited to 'dev-lang/tcc/files/clang.patch')
-rw-r--r-- | dev-lang/tcc/files/clang.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dev-lang/tcc/files/clang.patch b/dev-lang/tcc/files/clang.patch new file mode 100644 index 000000000000..8304470e3682 --- /dev/null +++ b/dev-lang/tcc/files/clang.patch @@ -0,0 +1,18 @@ +# 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)) { |