summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <javier.jardon@codethink.co.uk>2015-05-19 18:26:09 +0100
committerJavier Jardón <jjardon@gnome.org>2015-05-27 13:17:32 +0100
commit272a9008714738f4fb8778de51f207f2632063ba (patch)
treeb35fff643c9022020c9769f8fdc0a1372c22e458
parent0d4e9d9b9db13b259576d8a89c94cefb4dc1f222 (diff)
downloaddefinitions-272a9008714738f4fb8778de51f207f2632063ba.tar.gz
btrfs-progs.morph: workaround to fix compilation when compiling for armv5l
This is the error this patch fixes: [CC] cmds-filesystem.o /tmp/ccxlOOZV.s: Assembler messages: /tmp/ccxlOOZV.s:4983: Error: invalid operands (.text and *UND* sections) for `-' Makefile:149: recipe for target 'cmds-filesystem.o' failed make: *** [cmds-filesystem.o] Error 1 Change-Id: I336c28a0ec57ec37d577c58d44dade3c37607fe1
-rw-r--r--strata/foundation/btrfs-progs.morph4
1 files changed, 3 insertions, 1 deletions
diff --git a/strata/foundation/btrfs-progs.morph b/strata/foundation/btrfs-progs.morph
index 31e9270f..4e724dc9 100644
--- a/strata/foundation/btrfs-progs.morph
+++ b/strata/foundation/btrfs-progs.morph
@@ -4,4 +4,6 @@ build-system: autotools
pre-configure-commands:
- ./autogen.sh
configure-commands:
-- ./configure --prefix="$PREFIX" --disable-documentation
+# The change in the CFLAGS is needed to make the compilation succeed in armv5l
+- export CFLAGS="-O2 $CFLAGS";
+ ./configure --prefix="$PREFIX" --disable-documentation