summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-11 21:26:47 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-11 21:26:47 +0000
commit44305c4625e254ae756f502c1883c5196cc7949d (patch)
treeff5b6ef43c125b6072c317a25f4907a2a69a90ca /configure
parent77d81c3d575a1bc83e03353cb41eac350952f112 (diff)
Enable removal of debug info for tiny systems
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5699 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 15 insertions, 1 deletions
diff --git a/configure b/configure
index 534de8154..42fe0f7c2 100755
--- a/configure
+++ b/configure
@@ -46,6 +46,7 @@ GetOptions (
'module-dir=s' => \$opt_module_dir,
'binary-dir=s' => \$opt_binary_dir,
'library-dir=s' => \$opt_library_dir,
+ 'disable-debuginfo' => sub { $opt_disable_debug = 1 },
'help' => sub { showhelp(); },
'modupdate' => sub { modupdate(); },
'update' => sub { update(); },
@@ -136,7 +137,14 @@ if (defined $opt_use_openssl)
# no, let's not change these.
$config{OPTIMITEMP} = "0"; # Default Optimisation Value
-$config{OPTIMISATI} = "-g"; # Optimisation Flag
+if (!defined $opt_disable_debug)
+{
+ $config{OPTIMISATI} = "-g"; # Optimisation Flag
+}
+else
+{
+ $config{OPTIMISATI} = ""; # DEBUGGING OFF!
+}
$config{NICK_LENGT} = "31"; # Default Nick Length
if (defined $opt_nick_length)
@@ -303,6 +311,12 @@ sub update
# We've Loaded the cache file and all our variables..
print "Updating Files..\n";
getosflags();
+ if ($opt_disable_debug == 1)
+ {
+ print "Disabling debug information (-g).\n";
+ $config{OPTIMISATI} = "";
+ getosflags();
+ }
$has_epoll = $config{HAS_EPOLL};
$has_kqueue = $config{HAS_KQUEUE};
writefiles(1);