8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
16 lines
591 B
Diff
16 lines
591 B
Diff
diff --git a/cctools/ld64/src/ld/Options.cpp b/cctools/ld64/src/ld/Options.cpp
|
|
index 2565518..9250016 100644
|
|
--- a/cctools/ld64/src/ld/Options.cpp
|
|
+++ b/cctools/ld64/src/ld/Options.cpp
|
|
@@ -2522,6 +2522,11 @@ void Options::parse(int argc, const char* argv[])
|
|
throw "missing argument to -rpath";
|
|
fRPaths.push_back(path);
|
|
}
|
|
+ else if ( strcmp(arg, "-rpath-link") == 0 ) {
|
|
+ const char* path = argv[++i];
|
|
+ if ( path == NULL )
|
|
+ throw "missing argument to -rpath-link";
|
|
+ }
|
|
else if ( strcmp(arg, "-read_only_stubs") == 0 ) {
|
|
fReadOnlyx86Stubs = true;
|
|
}
|