summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorCosmin Paraschiv <cosmin.paraschiv@freescale.com>2014-03-07 15:39:04 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-21 12:05:30 +0000
commita4dd6dfccee0be50d3addce3dd1bf903e051ad5a (patch)
tree5a53987b6085c12514f5626cff420363509a044f /meta/recipes-devtools
parent09ab3a00598d06e3a1bf871811c2ac37359c74da (diff)
downloadopenembedded-core-a4dd6dfccee0be50d3addce3dd1bf903e051ad5a.tar.gz
openembedded-core-a4dd6dfccee0be50d3addce3dd1bf903e051ad5a.tar.bz2
openembedded-core-a4dd6dfccee0be50d3addce3dd1bf903e051ad5a.zip
gcc-runtime: Build libatomic
GCC 4.8 includes a new runtime library, libatomic, which supports atomic operations not supported by hardware or the OS. Build it, so other packages can link against it, if needed. Signed-off-by: Cosmin Paraschiv <cosmin.paraschiv@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/gcc/gcc-runtime.inc12
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc
index d3b11a759f..f8c1109f41 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-runtime.inc
@@ -12,7 +12,7 @@ ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_INCDIR}"
EXTRA_OECONF += "--disable-libunwind-exceptions"
EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu"
-RUNTIMETARGET = "libssp libstdc++-v3 libgomp"
+RUNTIMETARGET = "libssp libstdc++-v3 libgomp libatomic"
# ?
# libiberty
# libmudflap
@@ -87,6 +87,9 @@ PACKAGES = "\
libgomp \
libgomp-dev \
libgomp-staticdev \
+ libatomic \
+ libatomic-dev \
+ libatomic-staticdev \
"
# The base package doesn't exist, so we clear the recommends.
RRECOMMENDS_${PN}-dbg = ""
@@ -161,6 +164,13 @@ FILES_libgomp-staticdev = "\
${libdir}/libgomp*.a \
"
+FILES_libatomic = "${libdir}/libatomic.so.*"
+FILES_libatomic-dev = " \
+ ${libdir}/libatomic.so \
+ ${libdir}/libatomic.la"
+FILES_libatomic-staticdev = " \
+ ${libdir}/libatomic.a"
+
do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_packagedata"