diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-04-18 17:26:34 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-04-18 17:26:34 (GMT) |
commit | 764801ecaf19fd73e75a90ba26452dd7c86a5138 (patch) | |
tree | 5538db53fc102e834b1002fd7b886c30ffd2d7a6 /test/SWIG | |
parent | 05fbc42f3380435f378864b5d7d2b69083d7cd8e (diff) | |
download | SCons-764801ecaf19fd73e75a90ba26452dd7c86a5138.zip SCons-764801ecaf19fd73e75a90ba26452dd7c86a5138.tar.gz SCons-764801ecaf19fd73e75a90ba26452dd7c86a5138.tar.bz2 |
fix test for osx (with macports only at this point)
Diffstat (limited to 'test/SWIG')
-rw-r--r-- | test/SWIG/recursive-includes-cpp.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/SWIG/recursive-includes-cpp.py b/test/SWIG/recursive-includes-cpp.py index 364bd73..dbcac6d 100644 --- a/test/SWIG/recursive-includes-cpp.py +++ b/test/SWIG/recursive-includes-cpp.py @@ -64,6 +64,7 @@ test.write("mod.i", """\ test.write('SConstruct', """\ import distutils.sysconfig +import sys DefaultEnvironment( tools = [ 'swig' ] ) @@ -77,6 +78,9 @@ env = Environment( SHLIBPREFIX = "" ) +if sys.platform == 'darwin': + env['LIBS']=['python%d.%d'%(sys.version_info[0],sys.version_info[1])] + env.SharedLibrary( 'mod.so', [ |