3
0
Fork 0
forked from mirrors/nixpkgs

spidermonkey_52: Fix on ARMv6

Arch Linux applies the CFLAGS always, as does Debian, so do the same.
This commit is contained in:
Tuomas Tynkkynen 2018-08-21 13:29:17 +03:00
parent 92125b381d
commit 7cca16e9f1

View file

@ -13,6 +13,12 @@ in stdenv.mkDerivation rec {
buildInputs = [ readline icu zlib nspr ];
nativeBuildInputs = [ autoconf213 pkgconfig perl which python2 zip ];
# Apparently this package fails to build correctly with modern compilers, which at least
# on ARMv6 causes polkit testsuite to break with an assertion failure in spidermonkey.
# These flags were stolen from:
# https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/js52
NIX_CFLAGS_COMPILE = "-fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp";
patches = [
# needed to build gnome3.gjs
(fetchpatch {