History

libtcc: ignore linker optizimization and as-needed options. This allows compiling some packages from Gentoo's portage

Austin English committed 12 years ago

Commit ba286131 parent 361ec4f1 file · +4 −0Browse files

Unified · Split

libtcc.c+4−0
@@ -1560,6 +1560,10 @@ static int tcc_set_linker(TCCState *s, const char *option) · 1559 unmodified lines
15601560 } else
15611561 goto err;
15621562
1563+ } else if (link_option(option, "as-needed", &p)) {
1564+ ignoring = 1;
1565+ } else if (link_option(option, "O", &p)) {
1566+ ignoring = 1;
15631567 } else if (link_option(option, "rpath=", &p)) {
15641568 s->rpath = copy_linker_arg(p);
15651569 } else if (link_option(option, "section-alignment=", &p)) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t