]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc: Enable OpenMP compiling and library
authorMiLo <milo-software@users.sourceforge.net>
Mon, 21 Jan 2013 08:46:59 +0000 (09:46 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 25 Jan 2013 12:35:47 +0000 (12:35 +0000)
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-4.7.inc
meta/recipes-devtools/gcc/gcc-configure-runtime.inc

index 08a0103691d1c3d24230af31f20b76e7d80c16dc..2548f840876d48bf7519aac327b71778884aa829 100644 (file)
@@ -88,7 +88,6 @@ JAVA = ""
 EXTRA_OECONF_BASE = " --enable-lto \
                        --enable-libssp \
                        --disable-bootstrap \
-                       --disable-libgomp \
                        --disable-libmudflap \
                        --with-system-zlib \
                        --with-linker-hash-style=${LINKER_HASH_STYLE} \
index d40383cea526b5d9c68eff7b08cdd68e27d23e76..1c9155fdb977c96ef4c167fd049a8ea52b4657ec 100644 (file)
@@ -7,9 +7,7 @@ EXTRA_OECONF_PATHS = " \
     --with-sysroot=${STAGING_DIR_TARGET} \
     --with-build-sysroot=${STAGING_DIR_TARGET}"
 
-RUNTIMETARGET = "libssp libstdc++-v3"
-RUNTIMETARGET_append_powerpc = " libgomp"
-RUNTIMETARGET_append_powerpc64 = " libgomp"
+RUNTIMETARGET = "libssp libstdc++-v3 libgomp"
 #  ?
 # libiberty
 # libmudflap