This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]