From 1e2336e3541232223fda88bfb02706189a039a69 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 24 Aug 2007 11:48:37 +0000 Subject: Bug #1765375: fix stripping of unwanted LDFLAGS. (backport from rev. 57389) --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index a983b3be25..65b32ea271 100644 --- a/setup.py +++ b/setup.py @@ -267,7 +267,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 -- cgit v1.2.1