diff options
| author | Mats Wichmann <mats@linux.com> | 2023-08-19 12:44:38 (GMT) |
|---|---|---|
| committer | Mats Wichmann <mats@linux.com> | 2023-10-28 14:01:49 (GMT) |
| commit | d7904efb2c949647341d364d2235b85b21fc71b9 (patch) | |
| tree | 5a09bd0c6285fcc12025f3ee838d54a8de6d2e32 /test/Java/java_version_image/src1/Example7.java | |
| parent | 2bfab82c0d902ce36bd67e950308d4dcc5b6afac (diff) | |
| download | SCons-d7904efb2c949647341d364d2235b85b21fc71b9.zip SCons-d7904efb2c949647341d364d2235b85b21fc71b9.tar.gz SCons-d7904efb2c949647341d364d2235b85b21fc71b9.tar.bz2 | |
Add LIBLITERAL to support gcc -l:filename
This is done in a general way. using a construction var, although
at the moment only the GNU linker is known to handle things this way.
Had to do something funky, or it won't work when os.pathsep and
LIBLITRAL are the same, as they are on Linux (i.e. ':'). That's because
SCons.PathList.PathList is called and it does:
class _Pathlist:
def __init__(self, pathlist) -> None:
if SCons.Util.is_String(pathlist):
pathlist = pathlist.split(os.pathsep)
Splitting has the effect of turning ":libm.a" into ((0, ''), (0, 'libm.a')]
That is, the ':' is lost as part of the library specifier - so need to
try to avoid that.
Fixes #3951
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/Java/java_version_image/src1/Example7.java')
0 files changed, 0 insertions, 0 deletions
