Pass CXXFLAGS to binutils/gold.
The GOLD linker is written in C++. Pass CT_CFLAGS_FOR_HOST as
CXXFLAGS to configure so that any host specific flags are passed
through.
It feels a bit funny passing CFLAGS as CXXFLAGS, but the PPL and GCC
target rules already do the same.
Signed-off-by: Michael Hope <michael.hope@linaro.org>
(transplanted from 9cd87d279a99bd32a364f12d4b2d6d37e1d9248b)
1 # Wrapper to build the test suite facilities
3 # Current assumption: test suites are independent of each other
4 # - no order handling required.
6 # List all test suite facilities, and parse their scripts
7 CT_TEST_SUITE_FACILITY_LIST=
8 for f in "${CT_LIB_DIR}/scripts/build/test_suite/"*.sh; do
9 _f="$(basename "${f}" .sh)"
10 __f="CT_TEST_SUITE_${_f}"
11 __f=`echo ${__f} | tr "[:lower:]" "[:upper:]"`
12 if [ "${!__f}" = "y" ]; then
13 CT_DoLog DEBUG "Enabling test suite '${_f}'"
15 CT_TEST_SUITE_FACILITY_LIST="${CT_TEST_SUITE_FACILITY_LIST} ${_f}"
17 CT_DoLog DEBUG "Disabling test suite '${_f}'"
21 # Download the test suite facilities
23 for f in ${CT_TEST_SUITE_FACILITY_LIST}; do
24 do_test_suite_${f}_get
28 # Extract and patch the test suite facilities
29 do_test_suite_extract() {
30 for f in ${CT_TEST_SUITE_FACILITY_LIST}; do
31 do_test_suite_${f}_extract
35 # Build the test suite facilities
37 for f in ${CT_TEST_SUITE_FACILITY_LIST}; do
38 do_test_suite_${f}_build