$OpenBSD$ --- SConstruct.orig Thu Jun 28 12:09:08 2012 +++ SConstruct Thu Jun 28 12:37:27 2012 @@ -22,6 +22,7 @@ opts.Add('CXX', 'The C++ compiler (for the tests)') opts.Add('CCFLAGS', 'Flags for the compiler.', ['-O2', '-Wall']) opts.Add('LINK', 'The linker.') opts.Add('LINKFLAGS', 'Linker flags.', []) +opts.Add('SONAME', 'Shared library name.') opts.Add('no_cygwin', 'Use -mno-cygwin to build using the mingw compiler on cygwin', 0) opts.Add('LIBS', 'libraries', []) opts.Add('LIBPATH', 'library path', []) @@ -145,7 +146,9 @@ Files will be installed on /bin, /lib ########### end of helper builders env['CPPPATH'] = '#/include' -env['LIBPATH'] = ['#/lib'] + env['LIBPATH'] +env['LIBPATH'] = ['#/lib'] + env['LIBPATH'].split(" ") + +env.Append(SHLINKFLAGS=' -Wl,-soname='+env['SONAME']) if env['no_cygwin']: