[oe-commits] Phil Blundell : gcc-configure-cross: factor out --enable-threads argument into ${GCCTHREADS}

git at git.openembedded.org git at git.openembedded.org
Wed Sep 26 13:53:44 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 6bb0d37529a82b953d374f2d76c2412d7cee587b
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=6bb0d37529a82b953d374f2d76c2412d7cee587b

Author: Phil Blundell <philb at gnu.org>
Date:   Wed Sep 26 10:45:18 2012 +0100

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 at pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 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 908ad3e..4eb59fd 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 \





More information about the Openembedded-commits mailing list