scons: Make shared library builds work again

Compile gzstream as position independent code
use the PIC version of date for shared libs...oops
This commit is contained in:
Nathan Binkert 2009-06-12 21:19:16 -07:00
parent d3d8a5a83b
commit e1eacc8d92
2 changed files with 2 additions and 2 deletions

View file

@ -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'])

View file

@ -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.