]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-configure-cross: factor out --enable-threads argument into ${GCCTHREADS}
authorPhil Blundell <philb@gnu.org>
Wed, 26 Sep 2012 09:45:18 +0000 (10:45 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 26 Sep 2012 13:45:12 +0000 (14:45 +0100)
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 <pb@pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-configure-common.inc

index 908ad3eb2a6a15ff2ec22d11cefee7157f502111..4eb59fd583b99d8f3936bad5fe73a74b80bd4764 100644 (file)
@@ -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 \