commit f0f48232f045fe96ac5727c80a63e7e3d668814d
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Wed Jun 12 20:17:55 2019 +0200
Get full version of gcc
Recent gcc versions return a short version with -dumpversion, e.g. 9.
In this case, use -dumpfullversion, which gives something like 9.1.0.
This makes the gcc 9 detection work properly.
(cherry picked from commit 44bbd0b0ef8450f4d88dfb8c3345118f2fd14dfc)
---
config/lyxinclude.m4 | 4 ++++
status.23x | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4
index 1bf9def..164b2f7 100644
--- a/config/lyxinclude.m4
+++ b/config/lyxinclude.m4
@@ -383,6 +383,10 @@ if test x$GXX = xyes; then
if test x$CLANG = xno; then
dnl Useful for global version info
gxx_version=`${CXX} -dumpversion`
+ case $gxx_version in
+ *.*) ;;
+ *) gxx_version=`${CXX} -dumpfullversion` ;;
+ esac
CXX_VERSION="($gxx_version)"
else
gxx_version=clang-$clang_version
diff --git a/status.23x b/status.23x
index 23bd3ed..a9f8233 100644
--- a/status.23x
+++ b/status.23x
@@ -195,3 +195,5 @@ What's new
* BUILD/INSTALLATION
+- avoid annoying warnings with g++ 9.
+
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs