openssl: build static

This commit is contained in:
Emery Hemingway 2020-12-03 12:49:39 +01:00
parent 3215190568
commit abe28a02dc
1 changed files with 14 additions and 12 deletions

View File

@ -115,18 +115,20 @@ in {
ncurses = addPatchesHost [ ./ncurses/genode.patch ] ncurses; ncurses = addPatchesHost [ ./ncurses/genode.patch ] ncurses;
openssl = overrideAttrsHost (attrs: { openssl =
outputs = [ "out" ] overrideHost { static = true; } # shared library comes out stupid big
++ builtins.filter (x: x != "bin" && x != "out") attrs.outputs; (overrideAttrsHost (attrs: {
patches = attrs.patches or [ ] ++ [ ./openssl/genode.patch ]; outputs = [ "out" ]
configureScript = { ++ builtins.filter (x: x != "bin" && x != "out") attrs.outputs;
x86_64-genode = "./Configure Genode-x86_64"; patches = attrs.patches or [ ] ++ [ ./openssl/genode.patch ];
}.${stdenv.hostPlatform.system} or (throw configureScript = {
"Not sure what configuration to use for ${stdenv.hostPlatform.config}"); x86_64-genode = "./Configure Genode-x86_64";
configureFlags = attrs.configureFlags ++ [ "no-devcryptoeng" ]; }.${stdenv.hostPlatform.system} or (throw
postInstall = "Not sure what configuration to use for ${stdenv.hostPlatform.config}");
"rm $out/bin/c_rehash"; # eliminate the perl runtime dependency configureFlags = attrs.configureFlags ++ [ "no-devcryptoeng" ];
}) openssl; postInstall =
"rm $out/bin/c_rehash"; # eliminate the perl runtime dependency
}) openssl);
rsync = overrideHost { rsync = overrideHost {
enableACLs = false; enableACLs = false;