https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124918

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> OK even after removing `--enable-plugin` and disabling profiling, I still
> get the error in comment #4

Are you really sure? The error comes -Wl,--export-all-symbols present on the
link line that is only added by --enable-plugin, see config/gcc-plugin.m4:

# Check for plugin support.
# Respects --enable-plugin.
# Sets the shell variables enable_plugin and pluginlibs.
AC_DEFUN([GCC_ENABLE_PLUGINS],
  [# Check for plugin support
   AC_ARG_ENABLE(plugin,
   [AS_HELP_STRING([--enable-plugin], [enable plugin support])],
   enable_plugin=$enableval,
   enable_plugin=yes; default_plugin=yes)

   pluginlibs=
   plugin_check=yes

   case "${host}" in
     *-*-mingw*)
       # Since plugin support under MinGW is not as straightforward as on
       # other platforms (e.g., we have to link import library, etc), we
       # only enable it if explicitly requested.
       if test x"$default_plugin" = x"yes"; then
         enable_plugin=no
       elif test x"$enable_plugin" = x"yes"; then
         # Use make's target variable to derive import library name.
         pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=[$]@.a'
         plugin_check=no
       fi
     ;;

Are you positive that it is still there after removing --enable-plugin?

Reply via email to