From abc4f45fed50e1ce534217271c729c32c6dce2de Mon Sep 17 00:00:00 2001 From: Dianne Skoll Date: Tue, 22 Mar 2022 09:18:28 -0400 Subject: [PATCH] Compile with link-time optimization enabled if we're using gcc --- configure | 2 +- configure.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index c0eb45f2..557ac101 100755 --- a/configure +++ b/configure @@ -3973,7 +3973,7 @@ fi if test "$GCC" = yes; then - CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes" + CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -flto=auto -ffat-lto-objects" fi if test "$ac_cv_perlartifacts" = "yes" ; then diff --git a/configure.in b/configure.in index 6c5dba32..dfe2d118 100644 --- a/configure.in +++ b/configure.in @@ -47,7 +47,7 @@ AC_FUNC_UTIME_NULL AC_HEADER_TIME if test "$GCC" = yes; then - CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes" + CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -flto=auto -ffat-lto-objects" fi if test "$ac_cv_perlartifacts" = "yes" ; then