retitle 654380 nsis: build with recent mingw breaks NSISdl plugin tags 654380 + upstream thanks
Le mardi, 3 janvier 2012 11.00:10, Didier Raboud a écrit : > Package: nsis > Version: 2.46-6 > Severity: serious > Justification: Breaks win32-loader > > Hi Thomas, > > it seems that the zmemcpy patch currently breaks the win32-loader build by > making NSISdl::download fail. > > To reproduce that: try win32-loader 0.7.4.2 as built with nsis 2.46-5 [0] > and try (works with wine). Now try to rebuild it from source with nsis > 2.46-6 installed; it will fail at the first NSISdl::download call time. Hmm. After more investigation, it seems that said patch is not the culprit. My issue is that NSISdl::download doesn't work anymore; when run in wine, the console shows: err:module:import_dll Library libgcc_s_sjlj-1.dll (which is needed by L"C:\\windows\\temp\\nsg1012.tmp\\NSISdl.dll") not found err:module:import_dll Library libstdc++-6.dll (which is needed by L"C:\\windows\\temp\\nsg1012.tmp\\NSISdl.dll") not found This seems to correspond to RedHat's [RH#734905] and to NSIS's [NSIS#3406350]. I'm currently trying a build with the attached patch and will report back if it works or not. Cheers, OdyX [RH#734905] https://bugzilla.redhat.com/show_bug.cgi?id=734905 [NSIS#3406350] http://sourceforge.net/tracker/?func=detail&aid=3406350&group_id=22049&atid=373087
--- a/SCons/Config/gnu +++ b/SCons/Config/gnu @@ -115,6 +115,8 @@ plugin_env.Append(LINKFLAGS = ['-mwindows']) # build windows executables plugin_env.Append(LINKFLAGS = ['$ALIGN_FLAG']) # 512 bytes align plugin_env.Append(LINKFLAGS = ['$MAP_FLAG']) # generate map file +plugin_env.Append(LINKFLAGS = ['-static-libgcc']) # Make sure libgcc is statically linked in, for the plugins to work. +plugin_env.Append(LINKFLAGS = ['-static-libstdc++']) # Make sure libstdc++ is statically linked in, for the plugins to work. ### cross-platform util environment