diff --git a/base/gcc/gcc.conf b/base/gcc/gcc.conf index 0f7f6b83e..853729e6b 100644 --- a/base/gcc/gcc.conf +++ b/base/gcc/gcc.conf @@ -122,6 +122,9 @@ languages="c,c++" var_append confopt ' ' "--enable-c99" var_append confopt ' ' "--enable-long-long" +# pass --build-id option to the linker for all final links +var_append confopt ' ' "--enable-linker-build-id" + # special features when glibc is the primary libc for the target if [ "$SDECFG_LIBC" = 'glibc' ]; then # use the gnu_unique_object relocation for C++ template static data