https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51450
--- Comment #7 from Sam James <sjames at gcc dot gnu.org> --- Possibly fixed by: commit 11869b9c9eb8bcc8cb6a615141f522a447377324 Author: Gary V. Vaughan <g...@gnu.org> Date: Sat Nov 26 11:06:35 2011 +0700 m4: fix logic error leading to -fno-rtti being added wrongly. * m4/libtool.m4 (_LT_COMPILER_OPTION): Negate comparison so that compiler flags are added correctly. Signed-off-by: Gary V. Vaughan <g...@gnu.org> or commit ce55211c8b63914009536e3556727719ce988c39 Author: Christian Cornelssen <cc...@cs.tu-berlin.de> Date: Fri Nov 22 22:36:25 2002 +0000 * libtool.m4 (AC_LIBTOOL_COMPILER_OPTION, AC_LIBTOOL_PROG_CC_C_O): Changed method for compilation with custom flags to be language-independent. Thereby removed CFLAGS/GCJFLAGS mixup bug. Imitate Autoconf-style logging. Log entries no longer discarded by compilation failures. (_LT_AC_LANG_C_CONFIG, _LT_AC_LANG_CXX_CONFIG, _LT_AC_LANG_GCJ_CONFIG): Tuned settings of lt_simple_compile_test_code and lt_simple_link_test_code to avoid warnings that could break some option detections. (AC_LIBTOOL_PROG_COMPILER_NO_RTTI): Removed redundant "-c conftest.$ac_ext" in the argument to AC_LIBTOOL_COMPILER_OPTION. (AC_LIBTOOL_PROG_LD_SHLIBS): Replaced C-specific conftest source code with $lt_simple_compile_test_code, to support the "-lc" test with other languages. or one of the multi lang fixes around that time.