diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-lang/tcc/files/clang.patch |
reinit the tree, so we can have metadata
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)) { |