gcc -dumpversion has only MAJOR.MINOR, not MAJOR.MINOR.PATCHLEVEL
At least, for gcc 4.7 on Debian. OTOH, gcc --version outputs (on its first line) gcc-4.7.real (Debian 4.7.2-5) 4.7.2 so use that. Hopefully will work across systems & distros. (gcc-4.7.real is probably just argv[0], because diversion from hardening-wrapper) Change-Id: I94ea73628d8aac107e3ada1dc5a63e51e79ccdb2
Showing
Please
register
or
sign in
to comment