[OE-core] [PATCH] rpm: fix build issue with gcc5

Khem Raj raj.khem at gmail.com
Sun May 10 16:15:14 UTC 2015


On Sun, May 10, 2015 at 7:28 AM, Armin Kuster <akuster808 at gmail.com> wrote:
> | tset.o:(.debug_loc+0xe8): undefined reference to `.LCL0'
> | tset.o:(.debug_loc+0xf7): undefined reference to `.LCL0'
>
> thanks Khem
>
> Signed-off-by: Armin Kuster <akuster808 at gmail.com>
> ---
>  meta/recipes-devtools/rpm/rpm_5.4.14.bb | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/meta/recipes-devtools/rpm/rpm_5.4.14.bb b/meta/recipes-devtools/rpm/rpm_5.4.14.bb
> index 03a24f0..22b111a 100644
> --- a/meta/recipes-devtools/rpm/rpm_5.4.14.bb
> +++ b/meta/recipes-devtools/rpm/rpm_5.4.14.bb
> @@ -110,6 +110,9 @@ inherit autotools gettext
>
>  acpaths = "-I ${S}/db/dist/aclocal -I ${S}/db/dist/aclocal_java"
>
> +FULL_OPTIMIZATION_powerpc_remove = "-O2"
> +FULL_OPTIMIZATION_append_powerpc = " -Os "
> +

http://git.openembedded.org/openembedded-core-contrib/commit/?h=kraj/master&id=741d3bf91144973d26de647039fa60b87a09edf1
fixes same issue for libx11

I am wondering if we should make this change in some common config
metadata file to list all recipes that need this workaround
untill gcc is fixed for it may be arch-powerpc.inc, since then it will
be easy to remember to unbolt them once gcc is fixed.

>  # Specify the default rpm macros in terms of adjustable variables
>  rpm_macros = "%{_usrlibrpm}/macros:%{_usrlibrpm}/poky/macros:%{_usrlibrpm}/poky/%{_target}/macros:%{_etcrpm}/macros.*:%{_etcrpm}/macros:%{_etcrpm}/%{_target}/macros:~/.oerpmmacros"
>  rpm_macros_class-native = "%{_usrlibrpm}/macros:%{_usrlibrpm}/poky/macros:%{_usrlibrpm}/poky/%{_target}/macros:~/.oerpmmacros"
> --
> 2.3.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