> Thanks Nate. I just added env.Append(LIBS=['bz2']) to my SConscript
> and it works like charm now. Thank you for your quick reply.

I'm not sure if you plan to eventually integrate your code into M5
itself, but if you do, that's not quite the correct way.  You'll see
this code in the SConstruct file:
# Check for zlib.  If the check passes, libz will be automatically
# added to the LIBS environment variable.
if not conf.CheckLibWithHeader('z', 'zlib.h', 'C++','zlibVersion();'):
    print 'Error: did not find needed zlib compression library '\
          'and/or zlib.h header file.'
    print '       Please install zlib and try again.'
    Exit(1)

You should do the same thing replacing the zlib stuff with bz2 stuff.
Something like this:

# Check for libbz2.  If the check passes, libbz2 will be automatically
# added to the LIBS environment variable.
if not conf.CheckLibWithHeader('bz2', 'bzlib.h', 'C++','BZ2_bzlibVersion();'):
    print 'Error: did not find needed libbz2 compression library '\
          'and/or bzlib.h header file.'
    print '       Please install bzlib and try again.'
    Exit(1)
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to