Skip to content

Commit

Permalink
disable building openssl102 in debug mode on nix aarch64-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dougch committed Jun 7, 2023
1 parent dece431 commit bf2f43f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions nix/openssl_1_0_2.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@ pkgs.stdenv.mkDerivation rec {

buildInputs = [ pkgs.gnumake pkgs.perl534 ];

configurePhase = ''
./config -d shared -g3 -fPIC no-libunbound no-gmp no-jpake no-krb5 no-md2 no-rc5 no-rfc3779 no-sctp no-ssl-trace no-store no-zlib no-hw no-mdc2 no-seed no-idea enable-ec_nistp_64_gcc_128 no-camellia no-bf no-ripemd no-dsa no-ssl2 no-capieng -DSSL_FORBID_ENULL -DOPENSSL_NO_DTLS1 -DOPENSSL_NO_HEARTBEATS --prefix=$out
'';
configurePhase = let
default_options =
"shared -g3 -fPIC no-libunbound no-gmp no-jpake no-krb5 no-md2 no-rc5 no-rfc3779 no-sctp no-ssl-trace no-store no-zlib no-hw no-mdc2 no-seed no-idea enable-ec_nistp_64_gcc_128 no-camellia no-bf no-ripemd no-dsa no-ssl2 no-capieng -DSSL_FORBID_ENULL -DOPENSSL_NO_DTLS1 -DOPENSSL_NO_HEARTBEATS --prefix=$out";
in {
x86_64-linux = ''
./config -d ${default_options}
'';
aarch64-linux = ''
./config ${default_options}
'';
}.${pkgs.stdenv.hostPlatform.system};

buildPhase = ''
make depend -j $(nproc)
Expand Down

0 comments on commit bf2f43f

Please sign in to comment.