scons: Move the marshal binary to the build directory
authorChun-Chen TK Hsu <chunchenhsu@google.com>
Mon, 20 May 2019 16:38:31 +0000 (00:38 +0800)
committerChun-Chen TK Hsu <chunchenhsu@google.com>
Tue, 21 May 2019 15:46:50 +0000 (15:46 +0000)
commit874bb1a76091cce44d89f47bf13b9eac53eb2e41
tree63cccd0e765655a54410707e408c21930828cce3
parentae9ba7f40afcf9be9d7f97bbfb2cda8743c670b5
scons: Move the marshal binary to the build directory

The current marshal binary is in $BUILD/python/ directory which makes
the dynamic linker fail to find shared libraries with rpath information
when the marshal is executing. Moving $BUILD/python/marshal to
$BUILD/marshal solves this problem.

This is because the marshal binary is built with the same flags as gem5
binary. And if one adds rpath information with add_local_rpath() in some
SConscripts, the marshal binary will also link to those shared libraries
and have the same rpath information.  So it must be in the same
directory as gem5 binary such that the dynamic linker could find those
shared libraries with the rpath information.

Signed-off-by: Chun-Chen TK Hsu
Change-Id: I98d9c3e0180abefe6b2b6a78ee5a96324038eb53
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18888
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/SConscript