diff options
| author | Steven Knight <knight@baldmt.com> | 2005-05-07 20:56:44 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2005-05-07 20:56:44 (GMT) |
| commit | 1a4e5801c5b0797fc3fc0fc5bd9a27a9794252e3 (patch) | |
| tree | 55a418235504c72c949bf14a706f2bd1edb49ae2 /src/engine | |
| parent | 730081593efc2ac5c17def1650ad0b39c4d0e72a (diff) | |
| download | SCons-1a4e5801c5b0797fc3fc0fc5bd9a27a9794252e3.zip SCons-1a4e5801c5b0797fc3fc0fc5bd9a27a9794252e3.tar.gz SCons-1a4e5801c5b0797fc3fc0fc5bd9a27a9794252e3.tar.bz2 | |
Add RPATH (-R) support to the sun linker. (Karol Pietrzak)
Diffstat (limited to 'src/engine')
| -rw-r--r-- | src/engine/SCons/Platform/posix.xml | 3 | ||||
| -rw-r--r-- | src/engine/SCons/Tool/sunlink.py | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/engine/SCons/Platform/posix.xml b/src/engine/SCons/Platform/posix.xml index 1a53c72..cb05e52 100644 --- a/src/engine/SCons/Platform/posix.xml +++ b/src/engine/SCons/Platform/posix.xml @@ -2,7 +2,8 @@ <cvar name="RPATH"> <summary> A list of paths to search for shared libraries when running programs. -Currently only used in the GNU linker (gnulink) and IRIX linker (sgilink). +Currently only used in the GNU (gnulink), +IRIX (sgilink) and Sun (sunlink) linkers. Ignored on platforms and toolchains that don't support it. Note that the paths added to RPATH are not transformed by diff --git a/src/engine/SCons/Tool/sunlink.py b/src/engine/SCons/Tool/sunlink.py index 4767559..66dd7c0 100644 --- a/src/engine/SCons/Tool/sunlink.py +++ b/src/engine/SCons/Tool/sunlink.py @@ -60,5 +60,10 @@ def generate(env): env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS -G') + env.Append(LINKFLAGS=['$__RPATH']) + env['RPATHPREFIX'] = '-R' + env['RPATHSUFFIX'] = '' + env['_RPATH'] = '${_concat(RPATHPREFIX, RPATH, RPATHSUFFIX, __env__)}' + def exists(env): return ccLinker |
