[OpenSIPS-Devel] [OpenSIPS/opensips] 79418d: build system: Add special handling for gcc 7.2
Liviu Chircu
liviu at opensips.org
Sat Mar 10 11:23:10 EST 2018
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 79418dce9b14754bf15285b7d72b93513c5c93cd
https://github.com/OpenSIPS/opensips/commit/79418dce9b14754bf15285b7d72b93513c5c93cd
Author: Liviu Chircu <liviu at opensips.org>
Date: 2018-03-10 (Sat, 10 Mar 2018)
Changed paths:
M Makefile.defs
Log Message:
-----------
build system: Add special handling for gcc 7.2
It appears that gcc's "-dumpversion" behaves differently in 7.2
than in previous versions, due to "-dumpfullversion" being introduced.
$ gcc -dumpversion
7
$ gcc -dumpfullversion
7.2.0
This breaks compilation on systems such as Xubuntu 17.10 with:
Makefile.defs:930: You are using an old and unsupported gcc version
(7), compile at your own risk!
This backwards-incompatible change seems to have been reverted in 7.3+,
though, where the full version is once again being dumped:
$ gcc -dumpversion
7.3.0
$ gcc -dumpfullversion
7.3.0
More information about the Devel
mailing list