2008-08-22 00:31:18 +02:00
|
|
|
--- SConstruct.orig 2006-04-10 13:45:44.000000000 +0400
|
|
|
|
+++ SConstruct 2008-08-22 01:43:56.000000000 +0400
|
|
|
|
@@ -17,6 +17,7 @@
|
|
|
|
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', [])
|
|
|
|
@@ -128,7 +129,9 @@
|
2006-12-23 23:09:32 +01:00
|
|
|
########### end of helper builders
|
|
|
|
|
|
|
|
env['CPPPATH'] = '#/include'
|
|
|
|
-env['LIBPATH'] = ['#/lib'] + env['LIBPATH']
|
|
|
|
+env['LIBPATH'] = ['#/lib'] + env['LIBPATH'].split(" ")
|
2008-08-22 00:31:18 +02:00
|
|
|
+
|
2009-06-07 19:54:09 +02:00
|
|
|
+env.Append(SHLINKFLAGS=' -Wl,-soname='+env['SONAME'])
|
2006-12-23 23:09:32 +01:00
|
|
|
|
|
|
|
if env['no_cygwin']:
|
|
|
|
|