]> granicus.if.org Git - python/commitdiff
Bug #1765375: fix stripping of unwanted LDFLAGS.
authorGeorg Brandl <georg@python.org>
Fri, 24 Aug 2007 11:47:37 +0000 (11:47 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 24 Aug 2007 11:47:37 +0000 (11:47 +0000)
setup.py

index d768c65bf672c086a40ac23c4598c536c9a11397..7836d263fb7f5c428132a1639e3944859fca0a12 100644 (file)
--- 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