diff options
author | Richard Levitte <levitte@openssl.org> | 2016-04-01 16:03:46 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-04-01 22:48:12 +0200 |
commit | 488e2b0f5ae791ea17fd5b1880c4945a3306ca8e (patch) | |
tree | 6f64e85db9e835f9b5ecca08831e7118f477d992 /Configure | |
parent | 368058d0a79d2e3b853746b09ca86679a86ac233 (diff) |
Add the C macro NDEBUG when configuring for release
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -912,6 +912,8 @@ if ($target{build_scheme}->[0] eq "unified" && $classic) { my ($builder, $builder_platform, @builder_opts) = @{$target{build_scheme}}; +push @{$config{defines}}, "NDEBUG" if $config{build_type} eq "release"; + if ($target =~ /^mingw/ && `$target{cc} --target-help 2>&1` =~ m/-mno-cygwin/m) { $config{cflags} .= " -mno-cygwin"; |