Update SENF to compile using g++ 4.3.2 (Ubuntu 8.10)
[senf.git] / senfscons / BoostUnitTests.py
index 09d340a..1e28824 100644 (file)
@@ -33,9 +33,10 @@ def BoostUnitTests(env, target, objects, test_sources=None, LIBS = [], OBJECTS =
             test_sources = [ test_sources ]
     else:
         test_sources = []
-    testEnv = env.Copy(**kw)
-    testEnv.Prepend(LIBS = '$BOOSTTESTLIB')
+    testEnv = env.Clone(**kw)
+    testEnv.Prepend(_LIBFLAGS = ' -Wl,-Bstatic -l$BOOSTTESTLIB -Wl,-Bdynamic ')
     testEnv.Prepend(LIBS = LIBS)
+    testEnv.Append(LIBS = env['TEST_EXTRA_LIBS'])
     all_objects = []
     if not objects:
         objects = []