summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-07-07 08:15:41 +1200
committerPaul Eggleton <paul.eggleton@linux.intel.com>2016-07-07 11:41:57 +1200
commit565533bd47b30072b1961aba56cf05316e2d19b2 (patch)
treeb6dc45f9fdce773cc6618de99183f6a119f09b77
parent53fcfe4348a2ca727844f2b0bd3fca2902cbdda0 (diff)
downloadopenembedded-core-contrib-565533bd47b30072b1961aba56cf05316e2d19b2.tar.gz
openembedded-core-contrib-565533bd47b30072b1961aba56cf05316e2d19b2.tar.bz2
openembedded-core-contrib-565533bd47b30072b1961aba56cf05316e2d19b2.zip
gcc: add runtime packages to RRECOMMENDS
In order to use certain features of gcc, you need the corresponding runtime library. It seems to me that these ought to be installed by default when installing the compiler since they are required if certain command line options are used, so add them to RRECOMMENDS. I used RRECOMMENDS since some of these packages may or may not exist depending on architecture and build options; additionally it makes it possible to use BAD_RECOMMENDATIONS if you really want to exclude them. The impact of this isn't too bad in the context of an image providing on-target compilation - about a 30MB increase in size for an image containing gcc and g++. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
-rw-r--r--meta/recipes-devtools/gcc/gcc-target.inc19
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc
index 37c5c62aef..f436fa24f4 100644
--- a/meta/recipes-devtools/gcc/gcc-target.inc
+++ b/meta/recipes-devtools/gcc/gcc-target.inc
@@ -42,6 +42,10 @@ FILES_${PN} = "\
${gcclibdir}/${TARGET_SYS}/${BINV}/include-fixed \
"
INSANE_SKIP_${PN} += "dev-so"
+RRECOMMENDS_${PN} += "\
+ libssp \
+ libssp-dev \
+"
FILES_${PN}-dev = "\
${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \
@@ -69,10 +73,19 @@ FILES_g77-symlinks = "\
${bindir}/g77 \
${bindir}/f77 \
"
+RRECOMMENDS_g77 = "\
+ libg2c \
+ libg2c-dev \
+"
+
FILES_gfortran = "\
${bindir}/${TARGET_PREFIX}gfortran \
${libexecdir}/gcc/${TARGET_SYS}/${BINV}/f951 \
"
+RRECOMMENDS_gfortran = "\
+ libquadmath \
+ libquadmath-dev \
+"
FILES_gfortran-symlinks = "\
${bindir}/gfortran \
${bindir}/f95"
@@ -98,6 +111,12 @@ FILES_g++-symlinks = "\
${bindir}/c++ \
${bindir}/g++ \
"
+RRECOMMENDS_g++ = "\
+ libstdc++ \
+ libstdc++-dev \
+ libatomic \
+ libatomic-dev \
+"
FILES_${PN}-doc = "\
${infodir} \