Quick fix of debugging option for mk1mf.pl.
authorRichard Levitte <levitte@openssl.org>
Wed, 13 Jan 2016 19:39:58 +0000 (20:39 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 13 Jan 2016 19:54:17 +0000 (20:54 +0100)
util/mk1mf.pl was relying on the platform having the 'debug-' prefix
for doing a debug build.  Since the setup of targets has changed, this
is no longer true.  However, it can look for '--debug' in the command
line options.

Reviewed-by: Rich Salz <rsalz@openssl.org>
util/mk1mf.pl

index bac5a6f4e970cf836cdce7dcb2d62257326a1af6..64ad29adeb1ab4cf75ad94b1bf099cd0adebe2eb 100755 (executable)
@@ -83,8 +83,6 @@ while(<IN>) {
 }
 close(IN);
 
-$debug = 1 if $mf_platform =~ /^debug-/;
-
 if ($mf_fipscanisterinternal eq "y") {
        $fips = 1;
        $fipscanisterbuild = 1;
@@ -1401,6 +1399,7 @@ sub read_options
                "rsaref" => 0,
                "gcc" => \$gcc,
                "debug" => \$debug,
+               "--debug" => \$debug,
                "profile" => \$profile,
                "shlib" => \$shlib,
                "dll" => \$shlib,