tcc: add "-Wl,-rpath=path" option (library search path)

This commit is contained in:
grischka
2009-12-19 22:08:15 +01:00
parent dd3d4f7295
commit e81569bc70
5 changed files with 16 additions and 3 deletions

2
tcc.c
View File

@ -442,6 +442,8 @@ int parse_args(TCCState *s, int argc, char **argv)
{
error("target %s not found", p);
}
} else if (strstart(optarg, "-rpath=", &p)) {
s->rpath = p;
} else {
error("unsupported linker option '%s'", optarg);
}