CFLAGS set differently when configured with `./configure CC=gcc`
I missed a -Wall
warning in !16 (merged) because I configured with ./configure CC=gcc-8
which changes CFLAGS
Except
$ ./configure
configure: CC=gcc, CFLAGS=-W -Wall -Wundef -O2 -pedantic -fomit-frame-pointer -m64 -mtune=znver2 -march=znver2
$ ./configure CC=gcc (same with CC=gcc-8 or CC=clang)
configure: CC=gcc, CFLAGS=-g -O2
I believe this is happening because --enable-gmp-cflags
is turned off if user_redefine_cc
(configure.ac line 18)
Would it make sense to change the test from user_redefine_cc
to user_redefine_cflags
or to allow --enable-gmp-cflags
when CC
matches "$(clang|gcc)*"?