restore LINKFLAGS after test is done
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4016 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
7e8e0b95dd
commit
dd9ca8da98
1 changed files with 4 additions and 0 deletions
|
@ -110,6 +110,8 @@ funcs_obj = None
|
|||
def check_requirement(ctx, func, trigger):
|
||||
ctx.Message('Checking for %s requirement... ' % func)
|
||||
|
||||
flags = ctx.env['LINKFLAGS']
|
||||
|
||||
ctx.env.Append(LINKFLAGS = '$NODEFLIBS_FLAG')
|
||||
ctx.env.Append(LINKFLAGS = '-Wl,-e,___main')
|
||||
|
||||
|
@ -123,6 +125,8 @@ def check_requirement(ctx, func, trigger):
|
|||
ret = not ctx.TryLink(test, '.c')
|
||||
ctx.Result(ret)
|
||||
|
||||
ctx.env['LINKFLAGS'] = flags
|
||||
|
||||
return ret
|
||||
|
||||
def replace_emitter(env, builder_name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue