Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2003-09-13 20:57:56 +0400
committerBen Laurie <ben@openssl.org>2003-09-13 20:57:56 +0400
commitb09c9a91cb275f5562699ef898ec28abc5fd461b (patch)
tree3aaddaea67bdbf1d9483fc9219c5ca79366b4143 /Configure
parenta2fd4d03e8614271494b83bccb2416b8b1f0f783 (diff)
Add a debug flag.
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure13
1 files changed, 12 insertions, 1 deletions
diff --git a/Configure b/Configure
index 4a283ed48e..f6718535c0 100755
--- a/Configure
+++ b/Configure
@@ -10,7 +10,7 @@ use strict;
# see INSTALL for instructions.
-my $usage="Usage: Configure [no-<cipher> ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-engine] [no-hw-xxx|no-hw] [[no-]threads] [[no-]shared] [[no-]zlib|zlib-dynamic] [no-asm] [no-dso] [no-krb5] [386] [fips] [--prefix=DIR] [--openssldir=OPENSSLDIR] [--with-xxx[=vvv]] [--test-sanity] os/compiler[:flags]\n";
+my $usage="Usage: Configure [no-<cipher> ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-engine] [no-hw-xxx|no-hw] [[no-]threads] [[no-]shared] [[no-]zlib|zlib-dynamic] [no-asm] [no-dso] [no-krb5] [386] [fips] [debug] [--prefix=DIR] [--openssldir=OPENSSLDIR] [--with-xxx[=vvv]] [--test-sanity] os/compiler[:flags]\n";
# Options:
#
@@ -630,6 +630,7 @@ my $processor="";
my $default_ranlib;
my $perl;
my $fips=0;
+my $debug=0;
my $no_ssl2=0;
my $no_ssl3=0;
@@ -808,6 +809,10 @@ PROCESS_ARGS:
$fips=1;
$openssl_other_defines.="#define OPENSSL_FIPS\n";
}
+ elsif (/^debug$/)
+ {
+ $debug=1;
+ }
elsif (/^rsaref$/)
{
# No RSAref support any more since it's not needed.
@@ -1169,6 +1174,12 @@ if ($rmd160_obj =~ /\.o$/)
$cflags.=" -DRMD160_ASM";
}
+if ($debug)
+ {
+ $cflags.=" -g";
+ $cflags=~s/-fomit-frame-pointer//;
+ }
+
# "Stringify" the C flags string. This permits it to be made part of a string
# and works as well on command lines.
$cflags =~ s/([\\\"])/\\\1/g;