MinGW: Don't link to LIBGCC*.DLL and LIBSTDC++-*.DLL

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6261 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2012-09-11 00:53:50 +00:00
parent 59be675382
commit f2e3e13a0e

View file

@ -33,6 +33,11 @@ defenv['SUBSYS_CON'] = '-Wl,--subsystem,console'
defenv['MSVCRT_FLAG'] = ''
defenv['STDCALL'] = '"__attribute__((__stdcall__))"'
# Don't allow mingw to link with LIBGCC*.DLL and LIBSTDC++-*.DLL
if defenv['PLATFORM'] == 'win32':
defenv.Append(LINKFLAGS = ['-static-libgcc'])
defenv.Append(LINKFLAGS = ['-static-libstdc++'])
### defines
defenv.Append(CPPDEFINES = [('NSISCALL', '$STDCALL')])