summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorMiLo <milo-software@users.sourceforge.net>2013-01-21 09:46:59 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-25 12:42:43 +0000
commit3991c5520e584635d3034f27ce817c453b36fb2d (patch)
tree87e44a24dd7b6faff3384d8562cf9848b279e01e /meta/recipes-devtools
parentdbb0083c711bc51ad2b847f172b8552df6d07798 (diff)
downloadpoky-3991c5520e584635d3034f27ce817c453b36fb2d.tar.gz
gcc: Enable OpenMP compiling and library
Multicore embedded systems are getting more and more common. Remove "--disable-openmp" from the GCC configuration options and always build libgomp. This only creates a "bigger" compiler but has no effect on the compiled binaries that don't use openmp. Tested a clean build on mips32el and arm7a, no problems encountered. Autoconf will not detect OpenMP after this change, because it will build and run a target binary on the build system. In order to use OpenMP, the variable ac_cv_prog_c_openmp=-fopenmp must be set. (From OE-Core rev: fdf37b792c13a1fc3f63faf471f0403396414a35) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.7.inc1
-rw-r--r--meta/recipes-devtools/gcc/gcc-configure-runtime.inc4
2 files changed, 1 insertions, 4 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.7.inc b/meta/recipes-devtools/gcc/gcc-4.7.inc
index 08a0103691..2548f84087 100644
--- a/meta/recipes-devtools/gcc/gcc-4.7.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.7.inc
@@ -88,7 +88,6 @@ JAVA = ""
88EXTRA_OECONF_BASE = " --enable-lto \ 88EXTRA_OECONF_BASE = " --enable-lto \
89 --enable-libssp \ 89 --enable-libssp \
90 --disable-bootstrap \ 90 --disable-bootstrap \
91 --disable-libgomp \
92 --disable-libmudflap \ 91 --disable-libmudflap \
93 --with-system-zlib \ 92 --with-system-zlib \
94 --with-linker-hash-style=${LINKER_HASH_STYLE} \ 93 --with-linker-hash-style=${LINKER_HASH_STYLE} \
diff --git a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
index d40383cea5..1c9155fdb9 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
@@ -7,9 +7,7 @@ EXTRA_OECONF_PATHS = " \
7 --with-sysroot=${STAGING_DIR_TARGET} \ 7 --with-sysroot=${STAGING_DIR_TARGET} \
8 --with-build-sysroot=${STAGING_DIR_TARGET}" 8 --with-build-sysroot=${STAGING_DIR_TARGET}"
9 9
10RUNTIMETARGET = "libssp libstdc++-v3" 10RUNTIMETARGET = "libssp libstdc++-v3 libgomp"
11RUNTIMETARGET_append_powerpc = " libgomp"
12RUNTIMETARGET_append_powerpc64 = " libgomp"
13# ? 11# ?
14# libiberty 12# libiberty
15# libmudflap 13# libmudflap