[OE-core] [PATCH 1/2] gcc: add runtime packages to RRECOMMENDS

Khem Raj raj.khem at gmail.com
Wed Jul 6 21:06:25 UTC 2016


On Wed, Jul 6, 2016 at 1:55 PM, Paul Eggleton
<paul.eggleton at linux.intel.com> wrote:
> 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 at linux.intel.com>
> ---
>  meta/recipes-devtools/gcc/gcc-target.inc | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)
>
> diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc
> index 37c5c62..2eac2bc 100644
> --- a/meta/recipes-devtools/gcc/gcc-target.inc
> +++ b/meta/recipes-devtools/gcc/gcc-target.inc
> @@ -42,6 +42,16 @@ FILES_${PN} = "\
>      ${gcclibdir}/${TARGET_SYS}/${BINV}/include-fixed \
>  "
>  INSANE_SKIP_${PN} += "dev-so"
> +RRECOMMENDS_${PN} += "\
> +    libssp \
> +    libssp-dev \
> +    libquadmath \
> +    libquadmath-dev \
> +    libgomp \
> +    libgomp-dev \
> +    libitm \
> +    libitm-dev \
> +"

I think besides libssp/libquadmath others seems not commonly used. I
wouldnt suggest to add them

>
>  FILES_${PN}-dev = "\
>      ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \
> @@ -69,6 +79,11 @@ FILES_g77-symlinks = "\
>      ${bindir}/g77 \
>      ${bindir}/f77 \
>  "
> +RRECOMMENDS_g77 = "\
> +    libg2c \
> +    libg2c-dev \
> +"
> +
>  FILES_gfortran = "\
>      ${bindir}/${TARGET_PREFIX}gfortran \
>      ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/f951 \
> @@ -98,6 +113,12 @@ FILES_g++-symlinks = "\
>      ${bindir}/c++ \
>      ${bindir}/g++ \
>  "
> +RRECOMMENDS_g++ = "\
> +    libstdc++ \
> +    libstdc++-dev \
> +    libatomic \
> +    libatomic-dev \
> +"
>
>  FILES_${PN}-doc = "\
>      ${infodir} \
> --
> 2.5.5
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list