diff options
author | Maria Matejka <mq@ucw.cz> | 2019-02-20 22:14:28 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2019-02-20 22:30:55 +0100 |
commit | ad702bae0ce95ee1913327dd13a877e6bf9b320d (patch) | |
tree | 2c30d41ced6a71595a993f4e00968b242445df4a /configure.ac | |
parent | d1039926f5ee5a4e0442919474f16f3c93385cc9 (diff) |
Enabled link time optimization.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 850e771f..6b5fc233 100644 --- a/configure.ac +++ b/configure.ac @@ -137,12 +137,14 @@ if test "$bird_cflags_default" = yes ; then 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]) + BIRD_CHECK_GCC_OPTION([bird_cv_c_option_flto], [-flto]) 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]) + BIRD_ADD_GCC_OPTION([bird_cv_c_option_flto], [-flto]) fi AC_MSG_CHECKING([CFLAGS]) AC_MSG_RESULT([$CFLAGS]) |