scons: Don't add all objects to the library twice
authorNathan Binkert <nate@binkert.org>
Mon, 19 Jan 2009 17:03:41 +0000 (09:03 -0800)
committerNathan Binkert <nate@binkert.org>
Mon, 19 Jan 2009 17:03:41 +0000 (09:03 -0800)
src/SConscript

index a14e868fe50e3dc5b50ff6ca1273b75b897262af..cb523aa940353e99db9ea4b08823e7dd74a3b0f7 100644 (file)
@@ -1011,8 +1011,8 @@ def makeEnv(label, objsfx, strip = False, **kwargs):
 
     # First make a library of everything but main() so other programs can
     # link against m5.
-    static_lib = new_env.StaticLibrary(libname, static_objs + static_objs)
-    shared_lib = new_env.SharedLibrary(libname, shared_objs + shared_objs)
+    static_lib = new_env.StaticLibrary(libname, static_objs)
+    shared_lib = new_env.SharedLibrary(libname, shared_objs)
 
     for target, sources in unit_tests:
         objs = [ new_env.StaticObject(s) for s in sources ]