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

Armin Kuster akuster808 at gmail.com
Sun May 10 14:28:56 UTC 2015


| 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 "
+
 # 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




More information about the Openembedded-core mailing list