aboutsummaryrefslogtreecommitdiff
path: root/gold/options.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-08-21 20:37:32 +0000
committerIan Lance Taylor <iant@google.com>2007-08-21 20:37:32 +0000
commit41f542e70b89b9ea2875c438b0c9a60ac46092dd (patch)
treee731637699fca298f82185865790dd38321e4f69 /gold/options.cc
parentfcb7aa2f6b17eb5211fe4d361eab8d985c40065e (diff)
downloadgdb-41f542e70b89b9ea2875c438b0c9a60ac46092dd.zip
gdb-41f542e70b89b9ea2875c438b0c9a60ac46092dd.tar.gz
gdb-41f542e70b89b9ea2875c438b0c9a60ac46092dd.tar.bz2
Add support for -rpath.
Diffstat (limited to 'gold/options.cc')
-rw-r--r--gold/options.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/options.cc b/gold/options.cc
index b8339e8..36e0044 100644
--- a/gold/options.cc
+++ b/gold/options.cc
@@ -244,6 +244,9 @@ options::Command_line_options::options[] =
&General_options::set_output_file_name),
GENERAL_NOARG('r', NULL, N_("Generate relocatable output"), NULL,
ONE_DASH, &General_options::set_relocatable),
+ GENERAL_ARG('R', "rpath", N_("Add directory to runtime search path"),
+ N_("-R DIR, -rpath DIR"), ONE_DASH,
+ &General_options::add_to_rpath),
GENERAL_NOARG('\0', "shared", N_("Generate shared library"),
NULL, ONE_DASH, &General_options::set_shared),
GENERAL_NOARG('\0', "static", N_("Do not link against shared libraries"),