You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-lang/tcc/files/linker.patch

19 lines
667 B

# 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)) {