mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 20:41:27 -04:00
Merge remote-tracking branch 'origin/patches-2.0'
This commit is contained in:
commit
93defa2ffc
@ -51,12 +51,21 @@ AC_PROG_LN_S
|
|||||||
|
|
||||||
AC_PROG_GCC_TRADITIONAL
|
AC_PROG_GCC_TRADITIONAL
|
||||||
|
|
||||||
|
# We need to test for at least gcc 2.95 here, because older versions don't
|
||||||
|
# have -fno-strict-aliasing
|
||||||
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [
|
||||||
|
#if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
|
||||||
|
#error
|
||||||
|
#endif])], have_gcc295=yes, have_gcc295=no)
|
||||||
|
|
||||||
if test "$GCC" = "yes" ; then
|
if test "$GCC" = "yes" ; then
|
||||||
# Enable many gcc warnings by default...
|
# Enable many gcc warnings by default...
|
||||||
CFLAGS="$CFLAGS -Wall"
|
CFLAGS="$CFLAGS -Wall"
|
||||||
# And disable the strict-aliasing optimization, since it breaks
|
# And disable the strict-aliasing optimization, since it breaks
|
||||||
# our sockaddr-handling code in strange ways.
|
# our sockaddr-handling code in strange ways.
|
||||||
|
if test x$have_gcc295 = xyes; then
|
||||||
CFLAGS="$CFLAGS -fno-strict-aliasing"
|
CFLAGS="$CFLAGS -fno-strict-aliasing"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# OS X Lion started deprecating the system openssl. Let's just disable
|
# OS X Lion started deprecating the system openssl. Let's just disable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user