scons: Don't add all objects to the library twice
This commit is contained in:
parent
fb572a1d74
commit
51d780fa4d
1 changed files with 2 additions and 2 deletions
|
@ -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 ]
|
||||
|
|
Loading…
Reference in a new issue