Compile with link-time optimization enabled if we're using gcc

This commit is contained in:
Dianne Skoll
2022-03-22 09:18:28 -04:00
parent e651f92bd9
commit abc4f45fed
2 changed files with 2 additions and 2 deletions

2
configure vendored
View File

@@ -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

View File

@@ -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