This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Enable -fuse-linker-plugin by default when possible, take 2
> +if test -f ../lto-plugin/Makefile ; then
> + AC_MSG_CHECKING(linker plugin support)
> + gcc_cv_lto_plugin=no
> ...
> + if test x"$gcc_cv_lto_plugin" = xyes; then
> + AC_DEFINE(HAVE_LTO_PLUGIN, 1,
> + [Define if your linker supports plugin.])
> + fi
> + AC_MSG_RESULT($gcc_cv_lto_plugin)
> +fi
Please pull the lines in the quote above out of the if (i.e. leave
only the "ellipsis" part inside the if).
Even better would be to use AC_CACHE_CHECK. In any case, build parts
are okay with that change.
Paolo