Nmap Development mailing list archives

Re: gcc-4 troubleshooting


From: Greg Darke <starstuff () optusnet com au>
Date: Sun, 28 Aug 2005 22:29:21 +1000

I found that the code will compile correctly with GCC 4, if you enable
the no-strict-aliasing option (because strict-aliasing is enabled with
level 2 or higher optimization).

The command I used to configure Nmap was:
./configure CFLAGS="-O2 -fno-strict-aliasing"

Is there a way that we can check for GCC 4 and then automatically use
the -fno-strict-aliasing option?

Greg Darke

On Sun, 2005-08-28 at 02:56 -0700, Fyodor wrote:
Thanks for helping.  If we get this resolved soon enough, I hope to do
an Nmap Birthday Release on Thursday (September 1).  My baby is
turning 8!

Cheers,
-F


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev

Current thread: