forked from mirrors/nixpkgs
Merge pull request #10790 from mcmtroffaes/feature/openssl-mingw
openssl: cross build improvement
This commit is contained in:
commit
0435fe715c
|
@ -66,11 +66,18 @@ stdenv.mkDerivation rec {
|
|||
'';
|
||||
|
||||
crossAttrs = {
|
||||
# upstream patch: https://rt.openssl.org/Ticket/Display.html?id=2558
|
||||
postPatch = ''
|
||||
sed -i -e 's/[$][(]CROSS_COMPILE[)]windres/$(WINDRES)/' Makefile.shared
|
||||
'';
|
||||
preConfigure=''
|
||||
# It's configure does not like --build or --host
|
||||
export configureFlags="${concatStringsSep " " (configureFlags ++ [ opensslCrossSystem ])}"
|
||||
# WINDRES and RANLIB need to be prefixed when cross compiling;
|
||||
# the openssl configure script doesn't do that for us
|
||||
export WINDRES=${stdenv.cross.config}-windres
|
||||
export RANLIB=${stdenv.cross.config}-ranlib
|
||||
'';
|
||||
|
||||
configureScript = "./Configure";
|
||||
};
|
||||
|
||||
|
|
|
@ -69,11 +69,18 @@ stdenv.mkDerivation rec {
|
|||
'';
|
||||
|
||||
crossAttrs = {
|
||||
# upstream patch: https://rt.openssl.org/Ticket/Display.html?id=2558
|
||||
postPatch = ''
|
||||
sed -i -e 's/[$][(]CROSS_COMPILE[)]windres/$(WINDRES)/' Makefile.shared
|
||||
'';
|
||||
preConfigure=''
|
||||
# It's configure does not like --build or --host
|
||||
export configureFlags="${concatStringsSep " " (configureFlags ++ [ opensslCrossSystem ])}"
|
||||
# WINDRES and RANLIB need to be prefixed when cross compiling;
|
||||
# the openssl configure script doesn't do that for us
|
||||
export WINDRES=${stdenv.cross.config}-windres
|
||||
export RANLIB=${stdenv.cross.config}-ranlib
|
||||
'';
|
||||
|
||||
configureScript = "./Configure";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue