aboutsummaryrefslogtreecommitdiff
path: root/tcc.c
diff options
context:
space:
mode:
authorgrischka <grischka>2009-12-19 22:08:15 +0100
committergrischka <grischka>2009-12-19 22:16:20 +0100
commite81569bc70697d4380e7456e7938dec29c91af73 (patch)
treeb5bbdff565851065ed68deac7d762347f61b0f25 /tcc.c
parentdd3d4f7295f0729f36acf9be0d6027d1838b9a9b (diff)
downloadtinycc-e81569bc70697d4380e7456e7938dec29c91af73.tar.gz
tinycc-e81569bc70697d4380e7456e7938dec29c91af73.tar.bz2
tcc: add "-Wl,-rpath=path" option (library search path)
Diffstat (limited to 'tcc.c')
-rw-r--r--tcc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcc.c b/tcc.c
index ce5e09f..aeda468 100644
--- a/tcc.c
+++ b/tcc.c
@@ -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);
}