forked from mirrors/nixpkgs
neko: Correctly set 64bit mode in build.
Neko seems to think it is running in 32bit, even though it is compiled for 64bit. The fix is included in 1.8.3, which is not yet released as of now, so we add a temporary fix until the release. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
65358fad8c
commit
c585be8619
|
@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
|
|||
' src/tools/install.neko
|
||||
sed -i -e '/allocated = strdup/s|"[^"]*"|"'"$out/lib/neko:$out/bin"'"|' \
|
||||
vm/load.c
|
||||
# temporarily, fixed in 1.8.3
|
||||
sed -i -e 's/^#if defined(_64BITS)/& || defined(__x86_64__)/' vm/neko.h
|
||||
|
||||
for disabled_mod in mod_neko{,2} mod_tora{,2} mysql ui; do
|
||||
sed -i -e '/^libs/,/^}/{/^\s*'"$disabled_mod"'\s*=>/,/^\s*}/d}' \
|
||||
|
|
Loading…
Reference in a new issue