Make cross-buildable. I wonder if it will work...

svn path=/nixpkgs/trunk/; revision=30239
This commit is contained in:
Michael Raskin 2011-11-04 21:35:35 +00:00
parent ca92853163
commit f9596a8145

View File

@ -19,8 +19,15 @@ stdenv.mkDerivation {
propagatedBuildInputs = [ flex.hostDrv cracklib.hostDrv ];
preConfigure = ''
ar x ${flex.hostDrv}/lib/libfl.a
export LDFLAGS="$LDFLAGS $PWD/libyywrap.o"
mv libyywrap.o libyywrap-target.o
ar x ${flex}/lib/libfl.a
mv libyywrap.o libyywrap-host.o
export LDFLAGS="$LDFLAGS $PWD/libyywrap-target.o"
sed -e 's/@CC@/gcc/' -i doc/specs/Makefile.in
'';
postConfigure = ''
sed -e "s@ $PWD/libyywrap-target.o@ $PWD/libyywrap-host.o@" -i doc/specs/Makefile
'';
};
postInstall = ''