Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GNU: use -Wl,-rpath,<dir> instead of -Wl,-R<dir>
The latter is supported in binutils for backwards compatibility, but in general `-R<path>` is equivalent to `--just-symbols=<path>` when `path` is a file; only when it's a directory, it's treated as `-rpath=<path>`. Better avoid that ambiguity and use `-rpath`. Also split `-Wl,--enable-new-dtags` and `-Wl,-rpath,...` into two separate arguments, which is more common, and more likely to be parsed correctly by compiler wrappers. This commit does not attempt to add `--enable-new-dtags` to other linkers than binutils ld/gold that support the flag.
- Loading branch information