summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-21 12:30:21 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-21 12:30:21 +0000
commitf9e38155c62df2eab9a8321626d5186d19d65094 (patch)
treeb99089668c7cf54481d47d179d12524166a84da7
parentbe1536b3508abe8ba919dd46f908318f636ef7ab (diff)
Fix library detection flags (bad define put into the ldflags)
Change default flags from "-g" to "-O2 -g1". This takes us down from a build size of 350mb+ to 35mb, and still gives us the ability to backtrace! :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6419 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xconfigure4
-rw-r--r--make/utilities.pm3
2 files changed, 4 insertions, 3 deletions
diff --git a/configure b/configure
index 114d4c4f5..735f10ca3 100755
--- a/configure
+++ b/configure
@@ -144,11 +144,11 @@ if (defined $opt_use_openssl)
$config{OPTIMITEMP} = "0"; # Default Optimisation Value
if (!defined $opt_disable_debug)
{
- $config{OPTIMISATI} = "-g"; # Optimisation Flag
+ $config{OPTIMISATI} = "-O2 -g1"; # Optimisation Flag
}
else
{
- $config{OPTIMISATI} = ""; # DEBUGGING OFF!
+ $config{OPTIMISATI} = "-O2"; # DEBUGGING OFF!
}
$config{NICK_LENGT} = "31"; # Default Nick Length
diff --git a/make/utilities.pm b/make/utilities.pm
index 053fd9004..c5ba8e5e5 100644
--- a/make/utilities.pm
+++ b/make/utilities.pm
@@ -219,7 +219,8 @@ sub pkgconfig_get_lib_dirs($$$;$)
$main::config{$key} =~ s/^\s+//g;
$ret =~ s/^\s+//g;
}
- return "$ret -DVERSION_$libname=\"$v\"";
+ $ret =~ s/^\s+//g;
+ return $ret;
}
# Translate a $CompileFlags etc line and parse out function calls