Kouhei Sutou
kou****@clear*****
2011年 12月 7日 (水) 10:25:13 JST
Hi, In <87wra****@duckc*****> "[groonga-dev, 00644] [PATCH]: Fix configure checking of -Wno-* CFLAGS and CXXFLAGS for GCC" on Tue, 06 Dec 2011 14:51:07 +0900, Arnaud Fontaine <arnau****@nexed*****> wrote: > Compiling groonga with an old version of GCC fails when checking whether > `-lm' is supported because of unsupported `-Wno-unused-but-set-variable' > (only available from gcc 4.6.0 apparently), which on gcc 4.3 at least > displays a warning for log() prototype and then aborts because of > `-Wno-unused-but-set-variable'. ... > I have attached to this email a patch for configure.ac which checks > `-WWARNING-FLAG' (which according to GCC manual always raises a warning > message) when checking `-Wno-WARNING-FLAG'. I have tested it with GCC > 4.3 and it seems to work well as `-Wno-unused-but-set-variable' is > properly detected as not available. Could you please consider applying > this patch if you think it's fine? Thanks for your report and patch! I've merged your patch with some modifications. (e.g.: `...` is used instead of $(...).) Thanks, -- kou