Hack for btrfsProgs in ARM, due to a gcc bug.

It fails to build otherwise:
/tmp/nix-build-btrfs-progs-4.0.drv-4/ccUNrySY.s:4014: Error: invalid operands (.text and *UND* sections) for `-'
This commit is contained in:
Lluís Batlle i Rossell 2015-05-13 21:24:48 +00:00
parent 13d78c03d4
commit 53b6a4f063

View file

@ -3,7 +3,7 @@
let version = "4.0"; in
stdenv.mkDerivation rec {
stdenv.mkDerivation (rec {
name = "btrfs-progs-${version}";
src = fetchurl {
@ -28,4 +28,7 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ raskin wkennington ];
platforms = platforms.linux;
};
}
} // (if stdenv.isArm then {
# gcc bug with -O1 on ARM
patchPhase = "sed -i s/-O1/-O2/ configure";
} else {}))