forked from mirrors/nixpkgs
same fix but now using stdenv.lib.optionals recommended by shlevy
svn path=/nixpkgs/trunk/; revision=26859
This commit is contained in:
parent
ece5a6bfc7
commit
0686dd5767
|
@ -14,12 +14,12 @@ rec {
|
|||
phaseNames = ["doPatch" "fixX86Def" "killUsr" "doMakeInstall"];
|
||||
patches = [./constants.patch];
|
||||
|
||||
# fixes http://www.mail-archive.com/suspend-devel@lists.sourceforge.net/msg02355.html
|
||||
my64bitFlags= if (a.stdenv.system == "x86_64-linux") then ["BACKEND=x86emu"] else [""];
|
||||
|
||||
# using BACKEND=x86emu on 64bit systems fixes:
|
||||
# http://www.mail-archive.com/suspend-devel@lists.sourceforge.net/msg02355.html
|
||||
makeFlags = [
|
||||
"DESTDIR=$out"
|
||||
] ++ [my64bitFlags];
|
||||
] ++ a.stdenv.lib.optionals ( a.stdenv.system == "x86_64-linux" ) [ "BACKEND=x86emu" ];
|
||||
|
||||
fixX86Def = a.fullDepEntry (''
|
||||
sed -i lrmi.c -e 's@defined(__i386__)@(defined(__i386__) || defined(__x86_64__))@'
|
||||
'') ["doUnpack" "minInit"];
|
||||
|
|
Loading…
Reference in a new issue