fixed crash in xapian-core configure

use a copy of configure_env to prevent edits on what's being iterated
This commit is contained in:
renaud gaudin 2020-02-11 13:10:21 +00:00
parent 29956ee6be
commit 5af0a8bfe7
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ class MakeBuilder(Builder):
env['CFLAGS'] = env['CFLAGS'] + ' -fPIC'
env['CXXFLAGS'] = env['CXXFLAGS'] + ' -fPIC'
if self.configure_env:
for k in self.configure_env:
for k in list(self.configure_env):
if k.startswith('_format_'):
v = self.configure_env.pop(k)
v = v.format(buildEnv=self.buildEnv, env=env)