mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-09 12:48:43 +00:00
Configure: CFLAGS update
- add -flto only to default CFLAGS - add -fno-strict-aliasing, -fno-strict-overflow always - remove -Wno-implicit-fallthrough
This commit is contained in:
parent
cc02da816f
commit
8c42205e35
21
configure.ac
21
configure.ac
@ -137,18 +137,12 @@ if test "$enable_pthreads" != no ; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# This is assumed to be necessary for proper BIRD build
|
||||||
|
CFLAGS="$CFLAGS -fno-strict-aliasing -fno-strict-overflow"
|
||||||
|
|
||||||
if test "$bird_cflags_default" = yes ; then
|
if test "$bird_cflags_default" = yes ; then
|
||||||
BIRD_CHECK_GCC_OPTION([bird_cv_c_option_wno_pointer_sign], [-Wno-pointer-sign], [-Wall])
|
BIRD_CHECK_GCC_OPTION([bird_cv_c_option_wno_pointer_sign], [-Wno-pointer-sign], [-Wall])
|
||||||
BIRD_CHECK_GCC_OPTION([bird_cv_c_option_wno_missing_init], [-Wno-missing-field-initializers], [-Wall -Wextra])
|
BIRD_CHECK_GCC_OPTION([bird_cv_c_option_wno_missing_init], [-Wno-missing-field-initializers], [-Wall -Wextra])
|
||||||
BIRD_CHECK_GCC_OPTION([bird_cv_c_option_fno_strict_aliasing], [-fno-strict-aliasing])
|
|
||||||
BIRD_CHECK_GCC_OPTION([bird_cv_c_option_fno_strict_overflow], [-fno-strict-overflow])
|
|
||||||
|
|
||||||
CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wno-parentheses"
|
|
||||||
BIRD_ADD_GCC_OPTION([bird_cv_c_option_wno_pointer_sign], [-Wno-pointer-sign])
|
|
||||||
BIRD_ADD_GCC_OPTION([bird_cv_c_option_wno_missing_init], [-Wno-missing-field-initializers])
|
|
||||||
BIRD_ADD_GCC_OPTION([bird_cv_c_option_fno_strict_aliasing], [-fno-strict-aliasing])
|
|
||||||
BIRD_ADD_GCC_OPTION([bird_cv_c_option_fno_strict_overflow], [-fno-strict-overflow])
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$enable_debug" = no; then
|
if test "$enable_debug" = no; then
|
||||||
BIRD_CHECK_LTO
|
BIRD_CHECK_LTO
|
||||||
@ -159,6 +153,12 @@ if test "$bird_cv_c_lto" = yes; then
|
|||||||
LDFLAGS="$LDFLAGS -flto=4"
|
LDFLAGS="$LDFLAGS -flto=4"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wno-parentheses"
|
||||||
|
BIRD_ADD_GCC_OPTION([bird_cv_c_option_wno_pointer_sign], [-Wno-pointer-sign])
|
||||||
|
BIRD_ADD_GCC_OPTION([bird_cv_c_option_wno_missing_init], [-Wno-missing-field-initializers])
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([CFLAGS])
|
AC_MSG_CHECKING([CFLAGS])
|
||||||
AC_MSG_RESULT([$CFLAGS])
|
AC_MSG_RESULT([$CFLAGS])
|
||||||
|
|
||||||
@ -387,9 +387,6 @@ if test "$enable_debug" = yes ; then
|
|||||||
AC_CHECK_LIB([efence], [malloc])
|
AC_CHECK_LIB([efence], [malloc])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
BIRD_CHECK_GCC_OPTION([bird_cv_c_option_wno_implicit_fallthrough], [-Wno-implicit-fallthrough])
|
|
||||||
BIRD_ADD_GCC_OPTION([bird_cv_c_option_wno_implicit_fallthrough], [-Wno-implicit-fallthrough])
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CLIENT=birdcl
|
CLIENT=birdcl
|
||||||
|
Loading…
Reference in New Issue
Block a user