diff --git a/base/gcc/gcc.conf b/base/gcc/gcc.conf index 942c6e43e..0f7f6b83e 100644 --- a/base/gcc/gcc.conf +++ b/base/gcc/gcc.conf @@ -122,6 +122,14 @@ languages="c,c++" var_append confopt ' ' "--enable-c99" var_append confopt ' ' "--enable-long-long" +# 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 + # members and inline function local statics + var_append confopt ' ' "--enable-gnu-unique-object" +fi + + # build prerequisites var_append extraconfopt ' ' "--with-gmp=$( pkgprefix -r gmp )" var_append extraconfopt ' ' "--with-gmp-lib=$( pkgprefix -r libdir gmp )"