From: Richard Purdie Date: Sun, 13 Aug 2023 09:20:40 +0000 (+0100) Subject: binutils-cross-testsuite: Pass TUNE_LDARGS to tests X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0243af31f404f0b9187cebef192e626e290ead49;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git binutils-cross-testsuite: Pass TUNE_LDARGS to tests In some cases we need to pass the linker arguments to the linker, particularly when the default in LD differs to that which gcc and our compiler flags are using (mips defaults to 32 bit). Ensure these are passed in. Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/binutils/binutils-cross-testsuite_2.41.bb b/meta/recipes-devtools/binutils/binutils-cross-testsuite_2.41.bb index 14480785b4d..630815c7a3e 100644 --- a/meta/recipes-devtools/binutils/binutils-cross-testsuite_2.41.bb +++ b/meta/recipes-devtools/binutils/binutils-cross-testsuite_2.41.bb @@ -47,6 +47,8 @@ python check_prepare() { content.append(d.expand('set CC "${TARGET_PREFIX}gcc --sysroot=${STAGING_DIR_TARGET} ${TUNE_CCARGS}"')) content.append(d.expand('set CXX "${TARGET_PREFIX}g++ --sysroot=${STAGING_DIR_TARGET} ${TUNE_CCARGS}"')) content.append(d.expand('set CFLAGS_FOR_TARGET "--sysroot=${STAGING_DIR_TARGET} ${TUNE_CCARGS}"')) + content.append(d.expand('set LD "${TARGET_PREFIX}ld ${TUNE_LDARGS}"')) + content.append(d.expand('set LDFLAGS_FOR_TARGET "${TUNE_LDARGS}"')) if suite == "ld" and d.getVar("TUNE_ARCH") == "mips64": # oe patches binutils to have the default mips64 abi as 64bit, but