mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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 44bbd0b0ef
)
This commit is contained in:
parent
691f29b4c7
commit
f0f48232f0
@ -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
|
||||
|
@ -195,3 +195,5 @@ What's new
|
||||
|
||||
* BUILD/INSTALLATION
|
||||
|
||||
- avoid annoying warnings with g++ 9.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user