Actually specify a petype this time

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6610 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2015-09-18 17:44:12 +00:00
parent 654dce730b
commit d0ddb4aab0

View file

@ -214,7 +214,10 @@ conf.Finish()
# sure the sections will be written in the correct order.
#
stub_env.Append(LINKFLAGS = ['-B', petype]) ; --oformat petype also works in GCC 4.5.2
petype = 'pei-i386'
if defenv['TARGET_ARCH'] == 'amd64':
petype = 'pei-x86-64'
stub_env.Append(LINKFLAGS = ['-B', petype]) # --oformat petype also works in GCC 4.5.2
stub_uenv.Append(LINKFLAGS = ['-B', petype])
stub_env.Append(LINKFLAGS = ['-T', File('linker_script').rfile()])
stub_uenv.Append(LINKFLAGS = ['-T', File('linker_script').rfile()])