add $MAP_FLAG to all envs
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4172 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
a9ebc1c41c
commit
df2a7ce233
2 changed files with 8 additions and 0 deletions
|
@ -44,6 +44,7 @@ stub_env.Append(LINKFLAGS = '-mwindows') # build windows executables
|
||||||
stub_env.Append(LINKFLAGS = '$NODEFLIBS_FLAG') # no standard libraries
|
stub_env.Append(LINKFLAGS = '$NODEFLIBS_FLAG') # no standard libraries
|
||||||
stub_env.Append(LINKFLAGS = '$ALIGN_FLAG') # 512 bytes align
|
stub_env.Append(LINKFLAGS = '$ALIGN_FLAG') # 512 bytes align
|
||||||
stub_env.Append(LINKFLAGS = '-Wl,-e,_WinMain@16') # entry point
|
stub_env.Append(LINKFLAGS = '-Wl,-e,_WinMain@16') # entry point
|
||||||
|
stub_env.Append(LINKFLAGS = '$MAP_FLAG') # generate map file
|
||||||
|
|
||||||
### makensis environment
|
### makensis environment
|
||||||
|
|
||||||
|
@ -53,6 +54,7 @@ makensis_env.Append(CCFLAGS = '-O2') # optimize
|
||||||
makensis_env.Append(CCFLAGS = '-Wall') # all warnings
|
makensis_env.Append(CCFLAGS = '-Wall') # all warnings
|
||||||
|
|
||||||
makensis_env.Append(LINKFLAGS = '-s') # strip
|
makensis_env.Append(LINKFLAGS = '-s') # strip
|
||||||
|
makensis_env.Append(LINKFLAGS = '$MAP_FLAG') # generate map file
|
||||||
|
|
||||||
### plugin environment
|
### plugin environment
|
||||||
|
|
||||||
|
@ -64,6 +66,7 @@ plugin_env.Append(CCFLAGS = '-Wall') # level 3 warnings
|
||||||
|
|
||||||
plugin_env.Append(LINKFLAGS = '-s') # strip
|
plugin_env.Append(LINKFLAGS = '-s') # strip
|
||||||
plugin_env.Append(LINKFLAGS = '$ALIGN_FLAG') # 512 bytes align
|
plugin_env.Append(LINKFLAGS = '$ALIGN_FLAG') # 512 bytes align
|
||||||
|
plugin_env.Append(LINKFLAGS = '$MAP_FLAG') # generate map file
|
||||||
|
|
||||||
### util environment
|
### util environment
|
||||||
|
|
||||||
|
@ -76,6 +79,7 @@ util_env.Append(CCFLAGS = '-Wall') # all warnings
|
||||||
util_env.Append(LINKFLAGS = '-s') # strip
|
util_env.Append(LINKFLAGS = '-s') # strip
|
||||||
util_env.Append(LINKFLAGS = '-mwindows') # build windows executables
|
util_env.Append(LINKFLAGS = '-mwindows') # build windows executables
|
||||||
util_env.Append(LINKFLAGS = '$ALIGN_FLAG') # 512 bytes align
|
util_env.Append(LINKFLAGS = '$ALIGN_FLAG') # 512 bytes align
|
||||||
|
util_env.Append(LINKFLAGS = '$MAP_FLAG') # generate map file
|
||||||
|
|
||||||
|
|
||||||
### weird GCC requirements
|
### weird GCC requirements
|
||||||
|
|
|
@ -30,6 +30,7 @@ stub_env.Append(CCFLAGS = '/W3') # level 3 warnings
|
||||||
stub_env.Append(LINKFLAGS = '/opt:nowin98') # 512 bytes align
|
stub_env.Append(LINKFLAGS = '/opt:nowin98') # 512 bytes align
|
||||||
stub_env.Append(LINKFLAGS = '/entry:WinMain') # entry point
|
stub_env.Append(LINKFLAGS = '/entry:WinMain') # entry point
|
||||||
stub_env.Append(LINKFLAGS = '/NODEFAULTLIB') # no default libraries
|
stub_env.Append(LINKFLAGS = '/NODEFAULTLIB') # no default libraries
|
||||||
|
stub_env.Append(LINKFLAGS = '$MAP_FLAG') # generate map file
|
||||||
|
|
||||||
### makensis environment
|
### makensis environment
|
||||||
|
|
||||||
|
@ -41,6 +42,7 @@ makensis_env.Append(CCFLAGS = '/GX') # enable exceptions
|
||||||
makensis_env.Append(CCFLAGS = '/W3') # level 3 warnings
|
makensis_env.Append(CCFLAGS = '/W3') # level 3 warnings
|
||||||
|
|
||||||
makensis_env.Append(LINKFLAGS = '/opt:nowin98') # 512 bytes align
|
makensis_env.Append(LINKFLAGS = '/opt:nowin98') # 512 bytes align
|
||||||
|
makensis_env.Append(LINKFLAGS = '$MAP_FLAG') # generate map file
|
||||||
|
|
||||||
### plugin environment
|
### plugin environment
|
||||||
|
|
||||||
|
@ -51,6 +53,7 @@ if not defenv['DEBUG']:
|
||||||
plugin_env.Append(CCFLAGS = '/W3') # level 3 warnings
|
plugin_env.Append(CCFLAGS = '/W3') # level 3 warnings
|
||||||
|
|
||||||
plugin_env.Append(LINKFLAGS = '/opt:nowin98') # 512 bytes align
|
plugin_env.Append(LINKFLAGS = '/opt:nowin98') # 512 bytes align
|
||||||
|
plugin_env.Append(LINKFLAGS = '$MAP_FLAG') # generate map file
|
||||||
|
|
||||||
### util environment
|
### util environment
|
||||||
|
|
||||||
|
@ -61,6 +64,7 @@ if not defenv['DEBUG']:
|
||||||
util_env.Append(CCFLAGS = '/W3') # level 3 warnings
|
util_env.Append(CCFLAGS = '/W3') # level 3 warnings
|
||||||
|
|
||||||
util_env.Append(LINKFLAGS = '/opt:nowin98') # 512 bytes align
|
util_env.Append(LINKFLAGS = '/opt:nowin98') # 512 bytes align
|
||||||
|
util_env.Append(LINKFLAGS = '$MAP_FLAG') # generate map file
|
||||||
|
|
||||||
# return
|
# return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue