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:
parent
d3d8a5a83b
commit
e1eacc8d92
2 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
Import('main')
|
Import('main')
|
||||||
|
|
||||||
main.Library('gzstream', [File('gzstream.cc')])
|
main.Library('gzstream', [main.SharedObject('gzstream.cc')])
|
||||||
|
|
||||||
main.Prepend(CPPPATH=Dir('.'))
|
main.Prepend(CPPPATH=Dir('.'))
|
||||||
main.Append(LIBS=['gzstream'])
|
main.Append(LIBS=['gzstream'])
|
||||||
|
|
|
@ -984,7 +984,7 @@ def makeEnv(label, objsfx, strip = False, **kwargs):
|
||||||
static_objs.append(static_date)
|
static_objs.append(static_date)
|
||||||
|
|
||||||
shared_date = make_obj(date_source, static=False, extra_deps=shared_objs)
|
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
|
# First make a library of everything but main() so other programs can
|
||||||
# link against m5.
|
# link against m5.
|
||||||
|
|
Loading…
Reference in a new issue