Bug #1765375: fix stripping of unwanted LDFLAGS.

This commit is contained in:
Georg Brandl 2007-08-24 11:47:37 +00:00
parent 8ec5754086
commit 915c87d3e5
1 changed files with 2 additions and 1 deletions

View File

@ -302,7 +302,8 @@ class PyBuildExt(build_ext):
# strip out double-dashes first so that we don't end up with
# substituting "--Long" to "-Long" and thus lead to "ong" being
# used for a library directory.
env_val = re.sub(r'(^|\s+)-(-|(?!%s))' % arg_name[1], '', env_val)
env_val = re.sub(r'(^|\s+)-(-|(?!%s))' % arg_name[1],
' ', env_val)
parser = optparse.OptionParser()
# Make sure that allowing args interspersed with options is
# allowed