summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-19 00:52:26 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-19 00:52:26 +0000
commitdc43378b58fe1e44c80a6f49fe917b7730b66c55 (patch)
treea4d0655e22efaf36ebbfbfc7c2c860dd28e2faac
parent715984299881265e3659c412d68139255d8c64e7 (diff)
Add -fno-strict-aliasing to shut up gcc when building with -O2. We know what we're doing with the 'punned pointer' is perfectly valid and works fine (and we've been doing it since 1.0 alphas)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5771 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index 8d0a01fb4..67ca57107 100755
--- a/configure
+++ b/configure
@@ -1071,7 +1071,7 @@ sub dir_check {
sub getosflags {
if ($config{OSNAME} =~ /BSD$/) {
$config{LDLIBS} = "-lstdc++";
- $config{FLAGS} = "-fPIC -Wall -Woverloaded-virtual $config{OPTIMISATI}";
+ $config{FLAGS} = "-fno-strict-aliasing -fPIC -Wall -Woverloaded-virtual $config{OPTIMISATI}";
$config{FLAGS} .= " " . $ENV{CXXFLAGS} if exists($ENV{CXXFLAGS});
$config{MAKEPROG} = "gmake";
if ($config{OSNAME} eq "OpenBSD") {
@@ -1088,17 +1088,17 @@ sub getosflags {
return $config{OSNAME};
} else {
$config{LDLIBS} = "-ldl -lstdc++";
- $config{FLAGS} = "-fPIC -Wall -Woverloaded-virtual $config{OPTIMISATI}";
+ $config{FLAGS} = "-fno-strict-aliasing -fPIC -Wall -Woverloaded-virtual $config{OPTIMISATI}";
$config{FLAGS} .= " " . $ENV{CXXFLAGS} if exists($ENV{CXXFLAGS});
$config{MAKEPROG} = "make";
if ($config{OSNAME} =~ /CYGWIN/) {
- $config{FLAGS} = "-Wall -Woverloaded-virtual $config{OPTIMISATI}";
+ $config{FLAGS} = "-fno-strict-aliasing -Wall -Woverloaded-virtual $config{OPTIMISATI}";
$config{LDLIBS} = "";
$config{MAKEPROG} = "/usr/bin/make";
$config{MAKEORDER} = "ircd mods";
return "Cygwin";
} elsif ($config{OSNAME} eq "CYG-STATIC") {
- $config{FLAGS} = "-Wall -Woverloaded-virtual $config{OPTIMISATI}";
+ $config{FLAGS} = "-fno-strict-aliasing -Wall -Woverloaded-virtual $config{OPTIMISATI}";
$config{LDLIBS} = "";
$config{MAKEPROG} = "/usr/bin/make";
$config{MAKEORDER} = "mods ircd";