From 272a9008714738f4fb8778de51f207f2632063ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Tue, 19 May 2015 18:26:09 +0100 Subject: 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 --- strata/foundation/btrfs-progs.morph | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1