Browse Source

tcmode-external: pass --build-id=sha1 to align with internal

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Christopher Larson 3 years ago
parent
commit
361301fcb6
1 changed files with 4 additions and 0 deletions
  1. 4 0
      conf/distro/include/tcmode-external.inc

+ 4 - 0
conf/distro/include/tcmode-external.inc

@@ -106,6 +106,10 @@ TUNE_LDARGS += "${@'-m ${LDEMULATION}' if '${LDEMULATION}' else ''}"
 gcc_bindir = "${STAGING_BINDIR_TOOLCHAIN}/gcc"
 TUNE_CCARGS .= "${@' -B${gcc_bindir}' if d.getVar('PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils') != 'binutils-external-cross-${TARGET_ARCH}' else ''}"
 
+# Align the external toolchain ldflags with the internal
+TARGET_LDFLAGS_BUILD_ID = "-Wl,--build-id=sha1"
+TARGET_LDFLAGS += "${TARGET_LDFLAGS_BUILD_ID}"
+
 TCMODEOVERRIDES = "tcmode-external"
 TCMODEOVERRIDES_append = ":tcmode-${TCMODE}"
 OVERRIDES =. "${TCMODEOVERRIDES}:"