DllMain's name is _DllMain@12, not _DllMain@16
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4206 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
20521a99e9
commit
cfb0ff9762
1 changed files with 8 additions and 1 deletions
|
@ -16,7 +16,14 @@ def cross_env(env):
|
|||
|
||||
### flags
|
||||
|
||||
defenv['ENTRY_FLAG'] = lambda x: '-Wl,-e,_' + x + '@16'
|
||||
def entry(x):
|
||||
if x == 'WinMain':
|
||||
x = '_WinMain@16'
|
||||
elif x == 'DllMain':
|
||||
x = '_DllMain@12'
|
||||
return '-Wl,-e%s' % x
|
||||
|
||||
defenv['ENTRY_FLAG'] = entry
|
||||
defenv['MAP_FLAG'] = '-Wl,-Map,${TARGET.base}.map'
|
||||
defenv['EXCEPTION_FLAG'] = ''
|
||||
defenv['NODEFLIBS_FLAG'] = '-nostdlib -Wl,--exclude-libs,msvcrt.a'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue