Add the C macro NDEBUG when configuring for release
authorRichard Levitte <levitte@openssl.org>
Fri, 1 Apr 2016 14:03:46 +0000 (16:03 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 1 Apr 2016 20:48:12 +0000 (22:48 +0200)
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Configure

index 1caba711ea7941155d642a2ac83e1404b08e8f05..fdd88208b6a8da30c642cac1f10110cba4bebdd5 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -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";