show properly gcc version in configure output

Desktop / LibreOffice - Luboš Luňák [collabora.com] - 25 October 2021 07:15 UTC

$ gcc -dumpversion 7 $ gcc -dumpfullversion 7.5.0

Change-Id: If4f528b3ea732e405507d7563e743ba48e96f523 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124094

###

diff --git a/configure.ac b/configure.ac
index 88962625644f..eea9b8bf61bb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4369,7 +4369,7 @@ dnl Test the gcc version
dnl ===================================================================
if test "$GCC" = "yes" -a -z "$COM_IS_CLANG"; then
AC_MSG_CHECKING([the GCC version])
- _gcc_version=`$CC -dumpversion`
+ _gcc_version=`$CC -dumpfullversion`
gcc_full_version=$(printf '%s' "$_gcc_version" | \
$AWK -F. '{ print $1*10000+$2*100+(NF<3?1:$3) }')
GCC_VERSION=`echo $_gcc_version | $AWK -F. '{ print \$1*100+\$2 }'`

95a9567051c9 show properly gcc version in configure output
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share