mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-14 06:49:35 -04:00
Add -fno-strict-aliasing to let 1.4 build happily on GCC 4.4
svn:r1367
This commit is contained in:
parent
f5408f1d4d
commit
9af9aba62f
@ -6,6 +6,7 @@ Changes in 1.4.12-stable:
|
|||||||
o Fix another pair of fencepost bugs in epoll.c. [Patch from Adam Langley.]
|
o Fix another pair of fencepost bugs in epoll.c. [Patch from Adam Langley.]
|
||||||
o Do not break evdns connections to nameservers when our IP changes.
|
o Do not break evdns connections to nameservers when our IP changes.
|
||||||
o Set truncated flag correctly in evdns server replies.
|
o Set truncated flag correctly in evdns server replies.
|
||||||
|
o Disable strict aliasing with GCC: our code is not compliant with it.
|
||||||
|
|
||||||
Changes in 1.4.11-stable:
|
Changes in 1.4.11-stable:
|
||||||
o Fix a bug when removing a timeout from the heap. [Patch from Marko Kreen]
|
o Fix a bug when removing a timeout from the heap. [Patch from Marko Kreen]
|
||||||
|
@ -19,6 +19,9 @@ AC_PROG_LN_S
|
|||||||
AC_PROG_GCC_TRADITIONAL
|
AC_PROG_GCC_TRADITIONAL
|
||||||
if test "$GCC" = yes ; then
|
if test "$GCC" = yes ; then
|
||||||
CFLAGS="$CFLAGS -Wall"
|
CFLAGS="$CFLAGS -Wall"
|
||||||
|
# And disable the strict-aliasing optimization, since it breaks
|
||||||
|
# our sockaddr-handling code in strange ways.
|
||||||
|
CFLAGS="$CFLAGS -fno-strict-aliasing"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE(gcc-warnings,
|
AC_ARG_ENABLE(gcc-warnings,
|
||||||
@ -310,6 +313,7 @@ AC_CHECK_SIZEOF(long long)
|
|||||||
AC_CHECK_SIZEOF(long)
|
AC_CHECK_SIZEOF(long)
|
||||||
AC_CHECK_SIZEOF(int)
|
AC_CHECK_SIZEOF(int)
|
||||||
AC_CHECK_SIZEOF(short)
|
AC_CHECK_SIZEOF(short)
|
||||||
|
AC_CHECK_SIZEOF(void *)
|
||||||
AC_CHECK_TYPES([struct in6_addr], , ,
|
AC_CHECK_TYPES([struct in6_addr], , ,
|
||||||
[#ifdef WIN32
|
[#ifdef WIN32
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user