Fixing the gcc-cross-wrapper; it failed after some changes related to breaking
dependencies with it. (I should never link ld.so with a NIX_LDFLAGS -rpath forced) I made vim, scummvm cross-build. I added prboom (that cross-builds). Mplayer and elinks don't cross-build fine still, but are on the way. The mplayer fails to build in a weird way; nix does not show either a gcc error message or even the 'make' error message. svn path=/nixpkgs/branches/stdenv-updates/; revision=23131
This commit is contained in:
@@ -10,6 +10,18 @@ stdenv.mkDerivation {
|
||||
|
||||
buildInputs = [SDL zlib mpeg2dec];
|
||||
|
||||
crossAttrs = {
|
||||
preConfigure = ''
|
||||
# Remove the --build flag set by the gcc cross wrapper setup
|
||||
# hook
|
||||
export configureFlags="--host=${stdenv.cross.config}"
|
||||
'';
|
||||
postConfigure = ''
|
||||
# They use 'install -s', that calls the native strip instead of the cross
|
||||
sed -i 's/-c -s/-c/' ports.mk;
|
||||
'';
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Program to run certain classic graphical point-and-click adventure games (such as Monkey Island)";
|
||||
homepage = http://www.scummvm.org/;
|
||||
|
||||
Reference in New Issue
Block a user