check compiler flag `-m32' before linker flag as some gcc versions crash when linking non 32-bit objects with this flag

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5336 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2007-10-14 21:25:57 +00:00
parent ddff4f3946
commit 16280a6389

View file

@ -85,8 +85,8 @@ makensis_env.Append(CCFLAGS = '-Wall') # all warnings
makensis_env.Append(CXXFLAGS = '-Wno-non-virtual-dtor') # ignore virtual dtor warnings
conf = FlagsConfigure(makensis_env)
conf.CheckLinkFlag('-m32') #
conf.CheckCompileFlag('-m32') #
conf.CheckLinkFlag('-m32') #
conf.CheckLinkFlag('$MAP_FLAG') # generate map file
if not defenv['DEBUG'] and defenv['STRIP']:
TestStrip(conf) # strip