From 9c8bde853c0873da0f3e113128a4ba0e6acdc01f Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Mon, 27 Jun 2011 13:52:15 +0200 Subject: cc/gcc: add build-id option Add an option to configure gcc with --enable-linker-build-id. Reported-by: Bryan Hundven Signed-off-by: "Yann E. MORIN" --- scripts/build/cc/gcc.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts/build/cc') diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index ea5adfd1..a71fddd0 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -258,6 +258,10 @@ do_cc_core() { "") extra_config+=("--without-long-double-128");; esac + if [ "${CT_CC_GCC_BUILD_ID}" = "y" ]; then + extra_config+=( --enable-linker-build-id ) + fi + CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'" # Use --with-local-prefix so older gccs don't look in /usr/local (http://gcc.gnu.org/PR10532) @@ -526,6 +530,10 @@ do_cc() { "") extra_config+=("--without-long-double-128");; esac + if [ "${CT_CC_GCC_BUILD_ID}" = "y" ]; then + extra_config+=( --enable-linker-build-id ) + fi + if [ "${CT_CC_GCC_ENABLE_PLUGINS}" = "y" ]; then extra_config+=( --enable-plugin ) fi -- cgit v1.2.3