mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
pypy: added patch to fix build with gcc 4.9.2
This commit is contained in:
parent
5b70a64286
commit
c2f8791e83
@ -30,6 +30,8 @@ let
|
||||
LD_LIBRARY_PATH = stdenv.lib.concatStringsSep ":" (map (p: "${p}/lib")
|
||||
(stdenv.lib.filter (x : x.outPath != stdenv.cc.libc.outPath or "") buildInputs));
|
||||
|
||||
patches = [ ./fix-gcc-4-9-2.patch ];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "-Ojit" "-Ojit --batch" \
|
||||
|
19
pkgs/development/interpreters/pypy/2.4/fix-gcc-4-9-2.patch
Normal file
19
pkgs/development/interpreters/pypy/2.4/fix-gcc-4-9-2.patch
Normal file
@ -0,0 +1,19 @@
|
||||
--- a/rpython/translator/c/gcc/trackgcroot.py
|
||||
+++ b/rpython/translator/c/gcc/trackgcroot.py
|
||||
@@ -590,7 +590,7 @@
|
||||
|
||||
# The various cmov* operations
|
||||
for name in '''
|
||||
- e ne g ge l le a ae b be p np s ns o no
|
||||
+ e ne g ge l le a ae b be nb p np s ns o no
|
||||
'''.split():
|
||||
locals()['visit_cmov' + name] = binary_insn
|
||||
locals()['visit_cmov' + name + 'l'] = binary_insn
|
||||
@@ -837,6 +837,7 @@
|
||||
visit_jb = conditional_jump
|
||||
visit_jbe = conditional_jump
|
||||
visit_jp = conditional_jump
|
||||
+ visit_jnb = conditional_jump
|
||||
visit_jnp = conditional_jump
|
||||
visit_js = conditional_jump
|
||||
visit_jns = conditional_jump
|
Loading…
Reference in New Issue
Block a user