more of bug #1635841 - gcc strict-aliasing and build system

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5000 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2007-03-18 18:34:03 +00:00
parent 576446db5e
commit 7b6071caec

View file

@ -114,6 +114,7 @@ cp_util_env = defenv.Clone()
if not defenv['DEBUG']:
cp_util_env.Append(CCFLAGS = '-O2') # optimize
cp_util_env.Append(CCFLAGS = '-Wall') # all warnings
cp_util_env.Append(CCFLAGS = '-fno-strict-aliasing') # not safe for strict aliasing
conf = FlagsConfigure(cp_util_env)
conf.CheckLinkFlag('$MAP_FLAG') # generate map file