scons: Fix the compiler flag used for partial linking.
authorGabe Black <gabeblack@google.com>
Wed, 3 May 2017 07:37:19 +0000 (00:37 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 3 May 2017 10:51:07 +0000 (10:51 +0000)
commit32fd8906ad85c2a05c0af0f0b1cda6e4493be309
tree17f3a69623ef40f2c44a7e90d2d4b3edbfe1725d
parent31c8de306109f0fc3af6ad44aa474d86ba2f05f1
scons: Fix the compiler flag used for partial linking.

It seems that g++ can generally handle the -r flag for generating a
relocatable object file, but ld can't always handle the  --relocatable
flag.

Change-Id: I15f32e469590a814131d4e992b392a7ad6c52b83
Reviewed-on: https://gem5-review.googlesource.com/3001
Reviewed-by: Andreas Hansson <andreas.hansson@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
SConstruct