[Python-checkins] r57389 - python/trunk/setup.py

georg.brandl python-checkins at python.org
Fri Aug 24 13:47:38 CEST 2007


Author: georg.brandl
Date: Fri Aug 24 13:47:37 2007
New Revision: 57389

Modified:
   python/trunk/setup.py
Log:
Bug #1765375: fix stripping of unwanted LDFLAGS.


Modified: python/trunk/setup.py
==============================================================================
--- python/trunk/setup.py	(original)
+++ python/trunk/setup.py	Fri Aug 24 13:47:37 2007
@@ -302,7 +302,8 @@
                 # 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


More information about the Python-checkins mailing list