aboutsummaryrefslogtreecommitdiff
path: root/libssp
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2018-12-20 09:00:38 +0000
committerIain Sandoe <iain@sandoe.co.uk>2023-10-22 19:26:45 +0100
commit829b0c4cbabbe5056b79a8a1ec4cd9e9d928a5fb (patch)
tree3d97061f92415a88a69ca45b8e872ab6ca55ba49 /libssp
parent8abddb187b33480d8827f44ec655f45734a1749d (diff)
downloadgcc-829b0c4cbabbe5056b79a8a1ec4cd9e9d928a5fb.zip
gcc-829b0c4cbabbe5056b79a8a1ec4cd9e9d928a5fb.tar.gz
gcc-829b0c4cbabbe5056b79a8a1ec4cd9e9d928a5fb.tar.bz2
Driver: Provide a spec to insert rpaths for compiler lib dirs.
This provides a spec to insert "-rpath DDD" for each DDD corresponding to a compiler startfile directory. This allows a target to use @rpath as the install path for libraries, and have the compiler provide the necessary rpath to handle this. Embed real paths, not relative ones. We embed a runpath for every path in which libraries might be found. This change ensures that we embed the actual real path and not a relative one from the compiler's version-specific directory. e.g. /opt/distro/gcc-11-3Dr0/lib instead of: /opt/distro/gcc-11-3Dr0/lib/gcc/x86_64-apple-darwin19/11.3.0/../../.. This ensures that if we install, for example, 11.4.0 (and delete the 11.3.0 installation) exes built by 11.3 would continue to function (providing, of course that 11.4 does not bump any SO names). gcc/ChangeLog: * gcc.cc (RUNPATH_OPTION): New. (do_spec_1): Provide '%P' as a spec to insert rpaths for each compiler startfile path.
Diffstat (limited to 'libssp')
0 files changed, 0 insertions, 0 deletions