mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
Made curl cross-build properly with openssl support.
svn path=/nixpkgs/trunk/; revision=20452
This commit is contained in:
parent
697266261b
commit
49ba7bee3c
@ -34,6 +34,16 @@ stdenv.mkDerivation rec {
|
||||
# other LDFLAGS, because it doesn't use libtool for linking in the tests.
|
||||
makeFlags = if linkStatic then "LDFLAGS=-all-static" else "";
|
||||
|
||||
crossAttrs = {
|
||||
# We should refer to the cross built openssl
|
||||
# For the 'urandom', maybe it should be a cross-system option
|
||||
configureFlags = ''
|
||||
${if sslSupport then "--with-ssl=${openssl.hostDrv}" else "--without-ssl"}
|
||||
${if linkStatic then "--enable-static --disable-shared" else ""}
|
||||
--with-random /dev/urandom
|
||||
'';
|
||||
};
|
||||
|
||||
passthru = {
|
||||
inherit sslSupport openssl;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user