diff options
author | Phil Blundell <philb@gnu.org> | 2012-09-26 10:45:18 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-26 14:45:12 +0100 |
commit | 6bb0d37529a82b953d374f2d76c2412d7cee587b (patch) | |
tree | a1d41e48e51328fccf772d4def7551ce51245113 /meta/recipes-devtools/gcc | |
parent | 603daf343ad3f18c8adb799e3625ae2a18d94f56 (diff) | |
download | openembedded-core-6bb0d37529a82b953d374f2d76c2412d7cee587b.tar.gz openembedded-core-6bb0d37529a82b953d374f2d76c2412d7cee587b.tar.bz2 openembedded-core-6bb0d37529a82b953d374f2d76c2412d7cee587b.zip |
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 <pb@pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-configure-common.inc | 3 |
1 files changed, 2 insertions, 1 deletions
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 \ |