diff options
| author | Austin English <me@example.com> | 2014-03-06 12:29:19 -0800 |
|---|---|---|
| committer | Austin English <me@example.com> | 2014-03-06 12:29:19 -0800 |
| commit | ba286136bf8e48c71ffd6c2fd9ce97e64a6eeeb1 (patch) | |
| tree | b7a46595fb298bfa7da46ee9ae37301b0e72d3dd /libtcc.c | |
| parent | 361ec4f98e129b9a5b76da0600b9d9abef9eb0c3 (diff) | |
| download | tinycc-ba286136bf8e48c71ffd6c2fd9ce97e64a6eeeb1.tar.gz tinycc-ba286136bf8e48c71ffd6c2fd9ce97e64a6eeeb1.tar.bz2 | |
libtcc: ignore linker optizimization and as-needed options. This allows compiling some packages from Gentoo's portage
Diffstat (limited to 'libtcc.c')
| -rw-r--r-- | libtcc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)) { |
