fixed bug #1635841 - gcc strict-aliasing and build system
- added STRIP, APPEND_CCFLAGS and APPEND_LINKFLAGS command line options - added -fno-strict-aliasing to stubs and plug-ins git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4863 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
ce18bd8cb8
commit
bd86ee1bfc
2 changed files with 12 additions and 4 deletions
|
@ -133,9 +133,12 @@ opts.Add(BoolOption('MSTOOLKIT', 'Use Microsoft Visual C++ Toolkit', 'no'))
|
|||
opts.Add(BoolOption('CHMDOCS', 'Build CHM documentation, requires hhc.exe', hhc))
|
||||
opts.Add(PathOption('CPPPATH', 'Path to search for include files', None))
|
||||
opts.Add(PathOption('LIBPATH', 'Path to search for libraries', None))
|
||||
opts.Add(('APPEND_CCFLAGS', 'Additional C/C++ compiler flags'))
|
||||
opts.Add(('APPEND_LINKFLAGS', 'Additional linker flags'))
|
||||
# build options
|
||||
opts.Add(BoolOption('DEBUG', 'Build executables with debugging information', 'no'))
|
||||
opts.Add(PathOption('CODESIGNER', 'A program used to sign executables', None))
|
||||
opts.Add(BoolOption('STRIP', 'Strips executables of any unrequired data such as symbols', 'yes'))
|
||||
# path related build options
|
||||
opts.Add(('PREFIX_DEST', 'Intermediate installation prefix (extra install time prefix)', dirs['dest']))
|
||||
opts.Add(('PREFIX_CONF', 'Path to install nsisconf.nsh to', dirs['conf']))
|
||||
|
@ -303,6 +306,9 @@ else:
|
|||
if defenv['MSTOOLKIT']:
|
||||
defenv.Tool('mstoolkit', toolpath = ['SCons/Tools'])
|
||||
|
||||
defenv.Append(CCFLAGS = Split('$APPEND_CCFLAGS'))
|
||||
defenv.Append(LINKFLAGS = Split('$APPEND_LINKFLAGS'))
|
||||
|
||||
defenv.Default('$BUILD_PREFIX')
|
||||
|
||||
tools = defenv['TOOLS']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue