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

--- Comment #9 from Chinoune <mehdi.chinoune at hotmail dot com> ---
(In reply to Eric Botcazou from comment #8)
> > 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?

Did you read comment #4, there is no `--export-all-symbols` in link line.

Reply via email to