From: Phil Blundell Date: Wed, 26 Sep 2012 09:45:18 +0000 (+0100) Subject: gcc-configure-cross: factor out --enable-threads argument into ${GCCTHREADS} X-Git-Tag: 2015-4~9053 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=6bb0d37529a82b953d374f2d76c2412d7cee587b;p=openembedded-core.git gcc-configure-cross: factor out --enable-threads argument into ${GCCTHREADS} This allows BSPs for architectures with no thread support to set (for example) "GCCTHREADS=no" without having to override all the other configure parameters. Signed-off-by: Phil Blundell Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc index 908ad3eb2a..4eb59fd583 100644 --- a/meta/recipes-devtools/gcc/gcc-configure-common.inc +++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc @@ -26,12 +26,13 @@ EXTRA_OECONF_INITIAL ?= "" EXTRA_OECONF_INTERMEDIATE ?= "" GCCMULTILIB = "--disable-multilib" +GCCTHREADS ?= "posix" EXTRA_OECONF = "${@['--enable-clocale=generic', ''][d.getVar('USE_NLS', True) != 'no']} \ --with-gnu-ld \ --enable-shared \ --enable-languages=${LANGUAGES} \ - --enable-threads=posix \ + --enable-threads=${GCCTHREADS} \ ${GCCMULTILIB} \ --enable-c99 \ --enable-long-long \