aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
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.h
parentfcb7aa2f6b17eb5211fe4d361eab8d985c40065e (diff)
downloadfsf-binutils-gdb-41f542e70b89b9ea2875c438b0c9a60ac46092dd.zip
fsf-binutils-gdb-41f542e70b89b9ea2875c438b0c9a60ac46092dd.tar.gz
fsf-binutils-gdb-41f542e70b89b9ea2875c438b0c9a60ac46092dd.tar.bz2
Add support for -rpath.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/gold/options.h b/gold/options.h
index 56907c0..dc38b2f 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -43,7 +43,7 @@ class General_options
{ return this->dynamic_linker_; }
// -L: Library search path.
- typedef std::list<const char*> Dir_list;
+ typedef std::vector<const char*> Dir_list;
const Dir_list&
search_path() const
@@ -59,6 +59,11 @@ class General_options
is_relocatable() const
{ return this->is_relocatable_; }
+ // --rpath: The runtime search path.
+ const Dir_list&
+ rpath() const
+ { return this->rpath_; }
+
// --shared: Whether generating a shared object.
bool
is_shared() const
@@ -94,6 +99,10 @@ class General_options
{ this->is_relocatable_ = true; }
void
+ add_to_rpath(const char* arg)
+ { this->rpath_.push_back(arg); }
+
+ void
set_shared()
{ this->is_shared_ = true; }
@@ -109,6 +118,7 @@ class General_options
Dir_list search_path_;
const char* output_file_name_;
bool is_relocatable_;
+ Dir_list rpath_;
bool is_shared_;
bool is_static_;
};