[SCM] PostGIS branch master updated. 3.6.0rc2-156-g1b88d3722
git at osgeo.org
git at osgeo.org
Thu Oct 23 17:01:13 PDT 2025
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, master has been updated
via 1b88d3722487b689b97942c713e62ffce714289c (commit)
from 0c57be8a1a45f2e23448a2eba0b8dc3530f822aa (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1b88d3722487b689b97942c713e62ffce714289c
Author: Darafei Praliaskouski <me at komzpa.net>
Date: Fri Oct 24 04:01:00 2025 +0400
Allow the compiler to detect the parallelism for LTO (-flto=auto)
Closes #5702
diff --git a/configure.ac b/configure.ac
index 61ab6bbf2..d89e82c55 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1335,8 +1335,19 @@ if test $ENABLE_DEBUG -eq 1; then
else
CFLAGS="$CFLAGS -O2"
if test $ENABLE_LTO -eq 1; then
- _LT_COMPILER_OPTION([if $compiler supports -flto],[_cv_flto],[-flto],[],[CFLAGS="$CFLAGS -flto"],[])
- _LT_LINKER_OPTION([if $compiler supports -flto],[_cv_flto],[[-flto]],[LDFLAGS="$LDFLAGS -flto"])
+ if test "$GCC" = yes; then
+ _LT_COMPILER_OPTION([if $compiler supports -flto=auto],[_cv_flto_auto],[-flto=auto],[],[CFLAGS="$CFLAGS -flto=auto"],[])
+ if test "$_cv_flto_auto" != yes; then
+ _LT_COMPILER_OPTION([if $compiler supports -flto],[_cv_flto],[-flto],[],[CFLAGS="$CFLAGS -flto"],[])
+ fi
+ _LT_LINKER_OPTION([if the linker supports -flto=auto],[_cv_ld_flto_auto],[[-flto=auto]],[LDFLAGS="$LDFLAGS -flto=auto"])
+ if test "$_cv_ld_flto_auto" != yes; then
+ _LT_LINKER_OPTION([if the linker supports -flto],[_cv_ld_flto],[[-flto]],[LDFLAGS="$LDFLAGS -flto"])
+ fi
+ else
+ _LT_COMPILER_OPTION([if $compiler supports -flto],[_cv_flto],[-flto],[],[CFLAGS="$CFLAGS -flto"],[])
+ _LT_LINKER_OPTION([if $compiler supports -flto],[_cv_flto],[[-flto]],[LDFLAGS="$LDFLAGS -flto"])
+ fi
fi
fi
-----------------------------------------------------------------------
Summary of changes:
configure.ac | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list