[OE-core] [PATCH 2/2] libatomics-ops: force omit frame pointer for x86 builds
Jesse Zhang
sen.zhang at windriver.com
Wed Jul 17 08:40:47 UTC 2013
Fix failures when building with -fno-omit-frame-pointer (and without
optimization, i.e. -O0):
In file included from atomic_ops.h:212:0,
from atomic_ops_stack.h:32,
from atomic_ops_stack.c:23:
atomic_ops/sysdeps/gcc/x86.h: In function 'AO_compare_double_and_swap_double_full':
atomic_ops/sysdeps/gcc/x86.h:148:3: error: 'asm' operand has impossible constraints
__asm__ __volatile__("xchg %%ebx,%6;" /* swap GOT ptr and new_val1 */
^
Signed-off-by: Jesse Zhang <sen.zhang at windriver.com>
---
meta/recipes-multimedia/pulseaudio/libatomics-ops_7.2.bb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/recipes-multimedia/pulseaudio/libatomics-ops_7.2.bb b/meta/recipes-multimedia/pulseaudio/libatomics-ops_7.2.bb
index f31f983..98e4e0d 100644
--- a/meta/recipes-multimedia/pulseaudio/libatomics-ops_7.2.bb
+++ b/meta/recipes-multimedia/pulseaudio/libatomics-ops_7.2.bb
@@ -20,6 +20,10 @@ ALLOW_EMPTY_${PN} = "1"
ARM_INSTRUCTION_SET = "arm"
+# the assembly in src/atomic_ops/sysdeps/gcc/x86.h:AO_compare_double_and_swap_double_full
+# doesn't work with -fno-omit-frame-pointer on x86
+TARGET_CFLAGS_x86 := "${TARGET_CFLAGS} -fomit-frame-pointer"
+
inherit autotools pkgconfig
do_install_append() {
--
1.7.11.7
More information about the Openembedded-core
mailing list