diff options
author | Daniel Moody <dmoody256@gmail.com> | 2020-05-02 04:31:23 (GMT) |
---|---|---|
committer | Daniel Moody <dmoody256@gmail.com> | 2020-05-02 04:31:23 (GMT) |
commit | cbb97df8659b76d0227c27d0aed622e3086ce7b3 (patch) | |
tree | bd622879b089fc1d5f5b32c57037c3af5b584386 | |
parent | 5b14b6d1f7de9a471f9b1f8d77f2fa835be35e4f (diff) | |
download | SCons-cbb97df8659b76d0227c27d0aed622e3086ce7b3.zip SCons-cbb97df8659b76d0227c27d0aed622e3086ce7b3.tar.gz SCons-cbb97df8659b76d0227c27d0aed622e3086ce7b3.tar.bz2 |
add test for soname for applelink on linux
-rw-r--r-- | test/LINK/applelink.py | 4 | ||||
-rw-r--r-- | test/LINK/applelink_image/SConstruct_CurVers_CompatVers | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/LINK/applelink.py b/test/LINK/applelink.py index d43e332..906c929 100644 --- a/test/LINK/applelink.py +++ b/test/LINK/applelink.py @@ -122,7 +122,7 @@ for SHLIBVERSION, \ else: # Should contain -Wl,-current_version,{APPLELINK_CURRENT_VERSION} test.must_contain_all_lines(test.stdout(), - ['-Wl,-current_version,{APPLELINK_CURRENT_VERSION}'.format(**locals())]) + ['-Wl,-current_version,{APPLELINK_CURRENT_VERSION}'.format(**locals()), 'libfoo.4.dynlib']) if APPLELINK_NO_COMPATIBILITY_VERSION: # Should not contain -Wl,-compatibility_version @@ -131,7 +131,7 @@ for SHLIBVERSION, \ else: # Should contain -Wl,-compatibility_version,{APPLELINK_COMPATIBILITY_VERSION} test.must_contain_all_lines(test.stdout(), - ['-Wl,-compatibility_version,{APPLELINK_COMPATIBILITY_VERSION}'.format(**locals())]) + ['-Wl,-compatibility_version,{APPLELINK_COMPATIBILITY_VERSION}'.format(**locals()), 'libfoo.4.dynlib']) if not extra_flags: # Now run otool -L to get the compat and current version info and verify it's correct in the library. diff --git a/test/LINK/applelink_image/SConstruct_CurVers_CompatVers b/test/LINK/applelink_image/SConstruct_CurVers_CompatVers index fba953d..4a824d3 100644 --- a/test/LINK/applelink_image/SConstruct_CurVers_CompatVers +++ b/test/LINK/applelink_image/SConstruct_CurVers_CompatVers @@ -23,8 +23,8 @@ print("APPLELINK_NO_CURRENT_VERSION =[%s]"%env.get('APPLELINK_NO_CURRENT_VE print("APPLELINK_NO_COMPATIBILITY_VERSION=[%s]"%env.get('APPLELINK_NO_COMPATIBILITY_VERSION', False)) obj = env.SharedObject('foo.c') - sl = env.SharedLibrary('foo', obj) +sl2 = env.SharedLibrary('foo2', obj, SONAME='libfoo.4.dynlib') lm = env.LoadableModule('fool', obj) env.InstallVersionedLib(target='#/install', |