[prev in list] [next in list] [prev in thread] [next in thread]
List: openembedded-core
Subject: [OE-core] [PATCH 1/2] glib-2.0-native:fix do_configure failed with gcc 4.3.4 on x86 host
From: hongxu.jia () windriver ! com (Hongxu Jia)
Date: 2013-02-28 7:09:13
Message-ID: 7cdecd634555fae2c5c486880210dc65b62f3d7d.1362033854.git.hongxu.jia () windriver ! com
[Download RAW message or body]
When compile glib-2.0-native with GCC 4.3.4 on x86 host, the GCC needs
`-march' to let the atomic operations ("lock free") be available. Pass
`-march=native' to cause the compiler to auto-detect the architecture of the
build computer, If the auto-detect is unsuccessful the option has no effect.
[YOCTO #3563]
Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
---
meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb \
b/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb index d58d489..dbcd9b4 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb
@@ -44,6 +44,12 @@ RDEPENDS_${PN}-ptest_append_libc-glibc = "\
eglibc-localedata-translit-cjk-variants \
"
+# When compile glib-2.0-native with GCC 4.3.4 on x86 host, the GCC needs
+# `-march' to let the atomic operations ("lock free") be available. Pass
+# `-march=native' to cause the compiler to auto-detect the architecture of the
+# build computer, If the auto-detect is unsuccessful the option has no effect.
+BUILD_CFLAGS += "-march=native"
+
do_configure_prepend() {
sed -i -e '1s,#!.*,#!${USRBINPATH}/env python,' \
${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in }
--
1.7.10.4
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic