summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDirk Baechle <dl9obn@darc.de>2013-09-11 20:44:33 (GMT)
committerDirk Baechle <dl9obn@darc.de>2013-09-11 20:44:33 (GMT)
commit25c535f2e5997defdca96a6e0c35a0143e824982 (patch)
treee102cdf970a9d8c9e05593c5254b2da3b2572f54 /test
parent328e541f40849c270fc75f0932594d18d2e6340b (diff)
downloadSCons-25c535f2e5997defdca96a6e0c35a0143e824982.zip
SCons-25c535f2e5997defdca96a6e0c35a0143e824982.tar.gz
SCons-25c535f2e5997defdca96a6e0c35a0143e824982.tar.bz2
- fix for #2916, "Issues with versioned SharedLibrary under OpenBSD"
Diffstat (limited to 'test')
-rw-r--r--test/Libs/SharedLibrary.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Libs/SharedLibrary.py b/test/Libs/SharedLibrary.py
index b7d1374..eac575c 100644
--- a/test/Libs/SharedLibrary.py
+++ b/test/Libs/SharedLibrary.py
@@ -60,6 +60,13 @@ obj = env.SharedObject('bar', 'foo.c')
Default(env.Library(target = 'foo', source = obj))
""")
+test.write('SConstructBaz', """
+env=Environment()
+env['SHLIBVERSION'] = '1.0.0'
+obj = env.SharedObject('baz', 'foo.c')
+Default(env.SharedLibrary(target = 'baz', source = obj))
+""")
+
test.write('foo.c', r"""
#include <stdio.h>
@@ -287,6 +294,12 @@ main(int argc, char *argv[])
test.run(program = test.workpath('progbar'),
stdout = "f4.c\nprogbar.c\n")
+if sys.platform.startswith('openbsd'):
+ # Make sure we don't link libraries with -Wl,-soname on OpenBSD.
+ test.run(arguments = '-f SConstructBaz')
+ for line in test.stdout().split('\n'):
+ test.fail_test(line.find('-Wl,-soname=libbaz.so') != -1)
+
test.pass_test()
# Local Variables: