Currently, gem5 might use system's libelf library instead of
the one compiled from ext/libelf.
This commit tells scons to use ext/libelf version.
JIRA: https://gem5.atlassian.net/browse/GEM5-756
Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Change-Id: I8dc4555c32a956e9f5249288c71982fa6a3678f7
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33941
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
m4env.Library('elf', [m4env.SharedObject(f) for f in elf_files])
main.Prepend(CPPPATH=Dir('.'))
-main.Append(LIBS=['elf'])
+main.Append(LIBS=[File('libelf.a')])
main.Prepend(LIBPATH=[Dir('.')])