Menu

#272 Make plugins not depend on libstdc++-6.dll

Unstable
closed-accepted
nobody
POSIX (4)
5
2016-10-11
2016-08-22
f0rt
No
Description: Make plugins not depend on libstdc++-6.dll.
 .
 Newer MinGW GCC builds now default to a shared libstdc++, so plugins now also
 require -static-libstdc++.
 .
  Without this patch, C++ plugins such as NSISdl fail to load.
Bug-RedHat: https://bugzilla.redhat.com/show_bug.cgi?id=734905
Bug-RedHat: https://bugzilla.redhat.com/show_bug.cgi?id=553971
Bug-Debian: http://bugs.debian.org/654380
Author: Kevin Kofler <Kevin@tigcc.ticalc.org>
Last-Update: 2016-08-09
--- a/SCons/Config/gnu
+++ b/SCons/Config/gnu
@@ -141,6 +141,7 @@
 plugin_env.Append(LINKFLAGS = ['$ALIGN_FLAG'])      # 512 bytes align
 plugin_env.Append(LINKFLAGS = ['$MAP_FLAG'])        # generate map file
 plugin_env.Append(LINKFLAGS = ['-static-libgcc'])   # remove libgcc*.dll dependency
+plugin_env.Append(LINKFLAGS = ['-static-libstdc++']) # remove libstdc++*.dll dependency

 plugin_uenv = plugin_env.Clone()
 plugin_uenv.Append(CPPDEFINES = ['_UNICODE', 'UNICODE'])

Discussion

  • Amir Szekely

    Amir Szekely - 2016-08-22

    Looks good. Please commit.

     
  • f0rt

    f0rt - 2016-08-22

    Thanks for your review. I commited the patch [r6782].

     

    Related

    Commit: [r6782]

  • Uwe

    Uwe - 2016-10-11

    Why is this issue still open? It was committed so it could be closed, right?

     
  • Anders

    Anders - 2016-10-11
    • labels: --> POSIX
    • status: open --> closed-accepted
     

Log in to post a comment.