scons: added BOOST_VARIANT workaround for karmic
[senf.git] / site_scons / senfutil.py
index 2c88b64..275ea1d 100644 (file)
@@ -169,6 +169,11 @@ def DefaultOptions(env):
         LINKFLAGS_normal = [ '-Wl,-S' ],
         LINKFLAGS_debug  = [ '-g' ],
     )
+    # ugly hack for ubuntu karmic 
+    # ToDo: auto-configure alike support
+    if os.path.exists('/usr/lib/libboost_regex-mt.so'):
+        env.Append( BOOST_VARIANT = '-mt' )
+
 
 def Glob(env, exclude=[], subdirs=[]):
     testSources = env.Glob("*.test.cc", strings=True)