Fixing the openssl 1.0.0 cross build

svn path=/nixpkgs/trunk/; revision=22910
This commit is contained in:
Lluís Batlle i Rossell 2010-08-02 22:10:42 +00:00
parent aadea685af
commit 4b42d5f7a9

View File

@ -27,14 +27,10 @@ stdenv.mkDerivation rec {
crossAttrs = {
preConfigure=''
export cross=$crossSystem-
'';
configureFlags="--libdir=lib ${opensslCrossSystem} shared";
buildPhase = ''
make CC=$crossConfig-gcc \
AR="$crossConfig-ar r" \
RANLIB=$crossConfig-ranlib
# It's configure does not like --build or --host
export configureFlags="--libdir=lib --cross-compile-prefix=${stdenv.cross.config}- shared ${opensslCrossSystem}"
'';
configureScript = "./Configure";
};
meta = {