diff options
author | Tuomas Tynkkynen <tuomas@tuxera.com> | 2018-08-21 13:29:17 +0300 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas@tuxera.com> | 2018-08-21 13:29:17 +0300 |
commit | 7cca16e9f1d491879cb472263449f4228a086a20 (patch) | |
tree | 75a0d31b8420a40a07317c4a45841acb44bceca6 /pkgs/development/interpreters/spidermonkey | |
parent | 92125b381d3487e49d4e63c3b7feaa3cc6b4a82a (diff) |
spidermonkey_52: Fix on ARMv6
Arch Linux applies the CFLAGS always, as does Debian, so do the same.
Diffstat (limited to 'pkgs/development/interpreters/spidermonkey')
-rw-r--r-- | pkgs/development/interpreters/spidermonkey/52.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/spidermonkey/52.nix b/pkgs/development/interpreters/spidermonkey/52.nix index bfbc48e753b7..ecbb1abb40ca 100644 --- a/pkgs/development/interpreters/spidermonkey/52.nix +++ b/pkgs/development/interpreters/spidermonkey/52.nix @@ -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 { |