]> git.kaiwu.me - nginx.git/commit
Configure: fix gcc version detection in some corner cases
authorAndrew Clayton <a.clayton@nginx.com>
Wed, 29 Apr 2026 18:18:03 +0000 (19:18 +0100)
committerAndrew Clayton <a.clayton@nginx.com>
Fri, 1 May 2026 21:43:35 +0000 (22:43 +0100)
commit35510ddc944373e41bd8497f4fea30d36606b1e7
tree408cf8270cd7f18f2688dc0bb7eb86f3d687b14d
parent6eb7dcdd98dcba78d63b7e37a68fbe505e7ed725
Configure: fix gcc version detection in some corner cases

If the "gcc version ... " string appeared within "Configured with:", it
was picked up rather than the real gcc version string. This might then
break the configure scripts due to a malformed NGX_COMPILER macro.

The simple fix is to look for "gcc version ... " at the start of the
line, rather than anywhere within.

Suggested-by: Aleksei Bavshin <a.bavshin@nginx.com>
Closes: https://github.com/nginx/nginx/issues/1278
auto/cc/name