From: Georg Brandl Date: Fri, 24 Aug 2007 11:47:37 +0000 (+0000) Subject: Bug #1765375: fix stripping of unwanted LDFLAGS. X-Git-Tag: v2.6a1~1443 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=915c87d3e5d84c0635c2957f4ae9e96d0ab6705f;p=python Bug #1765375: fix stripping of unwanted LDFLAGS. --- diff --git a/setup.py b/setup.py index d768c65bf6..7836d263fb 100644 --- a/setup.py +++ b/setup.py @@ -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