mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 13:04:23 -04:00
Make -ffunction-sections off-by-default in 2.0.x
I don't see how this can burn anybody, but I don't want to take chances: new build options are something that should be done in an alpha. To turn -ffunction-sections on, pass --enable-function-sections to configure.
This commit is contained in:
parent
7d913f4c8e
commit
2fba21d867
@ -60,8 +60,12 @@ AC_ARG_ENABLE([libevent-install],
|
||||
AS_HELP_STRING([--disable-libevent-install, disable installation of libevent]),
|
||||
[], [enable_libevent_install=yes])
|
||||
AC_ARG_ENABLE([libevent-regress],
|
||||
AS_HELP_STRING([--disable-libevent-regress, skip regress in make check]),
|
||||
AS_HELP_STRING([--disable-libevent-regress, skip regress in make check]),
|
||||
[], [enable_libevent_regress=yes])
|
||||
AC_ARG_ENABLE([function-sections],
|
||||
AS_HELP_STRING([--enable-function-sections, make static library allow smaller binaries with --gc-sections]),
|
||||
[], [enable_function_sections=no])
|
||||
|
||||
|
||||
AC_PROG_LIBTOOL
|
||||
|
||||
@ -655,7 +659,7 @@ if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
|
||||
fi
|
||||
|
||||
LIBEVENT_GC_SECTIONS=
|
||||
if test "$GCC" = yes ; then
|
||||
if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
|
||||
AC_CACHE_CHECK(
|
||||
[if linker supports omitting unused code and data],
|
||||
[libevent_cv_gc_sections_works],
|
||||
|
Loading…
x
Reference in New Issue
Block a user