* [PATCH 0/1] glib-2.0: add -march=i486 into CFLAGS automatically when needed.
@ 2013-07-08 2:45 jackie.huang
2013-07-08 2:45 ` [PATCH 1/1] " jackie.huang
0 siblings, 1 reply; 2+ messages in thread
From: jackie.huang @ 2013-07-08 2:45 UTC (permalink / raw)
To: openembedded-core
From: Jackie Huang <jackie.huang@windriver.com>
The following changes since commit 3e1dbabbf33a2e461abc92ff10cd970fe604ee38:
sysstat: backport a patch to fix a parallel building error (2013-07-02 07:58:10 -0700)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib jhuang0/r_bbappend_glib_0708_2
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=jhuang0/r_bbappend_glib_0708_2
Jackie Huang (1):
glib-2.0: add -march=i486 into CFLAGS automatically when needed.
.../add-march-i486-into-CFLAGS-automatically.patch | 39 ++++++++++++++++++++
meta/recipes-core/glib-2.0/glib-2.0_2.36.2.bb | 1 +
2 files changed, 40 insertions(+), 0 deletions(-)
create mode 100644 meta/recipes-core/glib-2.0/glib-2.0/add-march-i486-into-CFLAGS-automatically.patch
--
1.7.4.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] glib-2.0: add -march=i486 into CFLAGS automatically when needed.
2013-07-08 2:45 [PATCH 0/1] glib-2.0: add -march=i486 into CFLAGS automatically when needed jackie.huang
@ 2013-07-08 2:45 ` jackie.huang
0 siblings, 0 replies; 2+ messages in thread
From: jackie.huang @ 2013-07-08 2:45 UTC (permalink / raw)
To: openembedded-core
From: Jackie Huang <jackie.huang@windriver.com>
glib configure will check if current gcc need -march=i486,
when gcc need -march=i486 but CFLAGS don't have,
glib configure will abort and advise the user to add -march=i486.
This will break the build process,it's not good for automatic build system.
so change this to adding -march=i486 automatically when it is needed.
Signed-off-by: Song.Li <Song.Li@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
.../add-march-i486-into-CFLAGS-automatically.patch | 39 ++++++++++++++++++++
meta/recipes-core/glib-2.0/glib-2.0_2.36.2.bb | 1 +
2 files changed, 40 insertions(+), 0 deletions(-)
create mode 100644 meta/recipes-core/glib-2.0/glib-2.0/add-march-i486-into-CFLAGS-automatically.patch
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/add-march-i486-into-CFLAGS-automatically.patch b/meta/recipes-core/glib-2.0/glib-2.0/add-march-i486-into-CFLAGS-automatically.patch
new file mode 100644
index 0000000..3aac35a
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/glib-2.0/add-march-i486-into-CFLAGS-automatically.patch
@@ -0,0 +1,39 @@
+From 55253b55b9c65f3e0efbbe03cbab2a4c4014a16b Mon Sep 17 00:00:00 2001
+From: Song.Li <Song.Li@windriver.com>
+Date: Thu, 5 Jul 2012 15:09:41 +0800
+Subject: [PATCH] add -march=i486 into CFLAGS automatically
+
+Upstream-Status: Inappropriate [configuration]
+
+glib configure will check if current gcc need -march=i486,
+when gcc need -march=i486 but CFLAGS don't have,
+glib configure will abort and advise the user to add -march=i486 or later.
+This will break the build process,it's not good for automatic build system.
+so change this to adding -march=i485 automatically when it is needed.
+---
+ configure.ac | 6 ++++--
+ 1 files changed, 4 insertions(+), 2 deletions(-)
+
+Index: glib-2.36.0/configure.ac
+===================================================================
+--- glib-2.36.0.orig/configure.ac
++++ glib-2.36.0/configure.ac
+@@ -2378,7 +2378,7 @@ dnl
+ dnl Note that the atomic ops are only available with GCC on x86 when
+ dnl using -march=i486 or higher. If we detect that the atomic ops are
+ dnl not available but would be available given the right flags, we want
+-dnl to abort and advise the user to fix their CFLAGS. It's better to do
++dnl to add -march=i486 automatically to fix their CFLAGS. It's better to do
+ dnl that then to silently fall back on emulated atomic ops just because
+ dnl the user had the wrong build environment.
+
+@@ -2401,7 +2401,8 @@ AC_CACHE_CHECK([for lock-free atomic int
+ AC_TRY_COMPILE([],
+ [volatile int atomic = 2;\
+ __sync_bool_compare_and_swap (&atomic, 2, 3);],
+- [AC_MSG_ERROR([GLib must be build with -march=i486 or later.])],
++ [AC_MSG_WARN([GLib must be build with -march=i486 or later.])
++ SAVE_CFLAGS="${SAVE_CFLAGS} -march=i486"],
+ [])
+ CFLAGS="${SAVE_CFLAGS}"
+ fi
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.36.2.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.36.2.bb
index 935a493..d9d8932 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.36.2.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.36.2.bb
@@ -13,6 +13,7 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \
file://glib-2.0_fix_for_x32.patch \
file://fix-conflicting-rand.patch \
file://Makefile-ptest.patch \
+ file://add-march-i486-into-CFLAGS-automatically.patch \
file://run-ptest \
"
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-08 2:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-08 2:45 [PATCH 0/1] glib-2.0: add -march=i486 into CFLAGS automatically when needed jackie.huang
2013-07-08 2:45 ` [PATCH 1/1] " jackie.huang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox