glib-2.0-native:add option march to BUILD_CFLAGS
cover glib-2.0-native:add option march to BUILD_CFLAGS
The following changes since commit 90c0eb29f0b41e4ac2d3d17ebad7295c2ebdc02a:
rootfs_rpm.bbclass: remove debug code (2012-12-19 21:43:55 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib hongxu/glib-2.0-native
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/glib-2.0-native
Hongxu Jia (1):
glib-2.0-native:add option march to BUILD_CFLAGS
meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.10.4
PATCH 1/1 glib-2.0-native:add option march to BUILD_CFLAGS
Add option -march to BUILD_CFLAGS in order to let the atomic operations ("lock free") be available while using old version GCC (4.3.4 for example) on x86 host to compile glib-2.0-native.
[YOCTO #3563]
--- meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb +6 -1
@@ -1,6 +1,6 @@ require glib.inc -PR = "r0" +PR = "r1" PE = "1" DEPENDS += "libffi python-argparse-native zlib"
@@ -19,6 +19,11 @@ SRC_URI[sha256sum] = "855fcbf87cb93065b488358e351774d8a39177281023bae58c286f4161 SRC_URI_append_class-native = " file://glib-gettextize-dir.patch" BBCLASSEXTEND = "native nativesdk" +# Add option -march to BUILD_CFLAGS in order to let the atomic operations +# ("lock free") be available while using old version GCC on x86 host to +# compile glib-2.0-native +BUILD_CFLAGS += "-march=`echo ${BUILD_ARCH} | sed 's/_/-/'`" + do_configure_prepend() { sed -i -e '1s,#!.*,#!${USRBINPATH}/env python,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in }
Signature · 1 line
1.7.10.4
meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb SRC_URI[sha256sum] = "855fcbf87cb93065b488358e351774d8a39177281023bae58c286f4161 · line 25
Quoted 4 lines · Hongxu Jia
meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb +4
-0+# Add option -march to BUILD_CFLAGS in order to let the atomic operations +# ("lock free") be available while using old version GCC on x86 host to +# compile glib-2.0-native +BUILD_CFLAGS += "-march=`echo ${BUILD_ARCH} | sed 's/_/-/'`"
Should we do this inside bitbake.conf instead of just in glib?
Ross
Quoted 8 lines · Ross
meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb SRC_URI[sha256sum] = "855fcbf87cb93065b488358e351774d8a39177281023bae58c286f4161 · line 25
Quoted 4 lines · Hongxu Jia
meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb +4
-0+# Add option -march to BUILD_CFLAGS in order to let the atomic operations +# ("lock free") be available while using old version GCC on x86 host to +# compile glib-2.0-native +BUILD_CFLAGS += "-march=`echo ${BUILD_ARCH} | sed 's/_/-/'`"Should we do this inside bitbake.conf instead of just in glib?
Ross
This is only needed by glib-2.0-native, and didn't notice this error for other recipes, so I just added it for glib-2.0-native.
Hongxu