From e1eacc8d92498f29a43b427e314c95798d70a080 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Fri, 12 Jun 2009 21:19:16 -0700 Subject: [PATCH] scons: Make shared library builds work again Compile gzstream as position independent code use the PIC version of date for shared libs...oops --- ext/gzstream/SConscript | 2 +- src/SConscript | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/gzstream/SConscript b/ext/gzstream/SConscript index c8432ae15..b93f5e361 100644 --- a/ext/gzstream/SConscript +++ b/ext/gzstream/SConscript @@ -30,7 +30,7 @@ Import('main') -main.Library('gzstream', [File('gzstream.cc')]) +main.Library('gzstream', [main.SharedObject('gzstream.cc')]) main.Prepend(CPPPATH=Dir('.')) main.Append(LIBS=['gzstream']) diff --git a/src/SConscript b/src/SConscript index 42e002310..d96922b49 100644 --- a/src/SConscript +++ b/src/SConscript @@ -984,7 +984,7 @@ def makeEnv(label, objsfx, strip = False, **kwargs): static_objs.append(static_date) shared_date = make_obj(date_source, static=False, extra_deps=shared_objs) - shared_objs.append(static_date) + shared_objs.append(shared_date) # First make a library of everything but main() so other programs can # link against m5. -- 2.30.2