Bugs item #1675533, was opened at 2007-03-07 03:45
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1675533&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Carson Gaspar (cgaspar)
Assigned to: Nobody/Anonymous (nobody)
Summary: setup.py LDFLAGS regexp is wrong

Initial Comment:
Python 2.5

setup.py mangles LDFLAGS and CPPFLAGS via:

env_val = re.sub(r'(^|\s+)-(-|(?!%s))' % arg_name[1], '', env_val)

This causes '-L/path/to/foo -R/path/to/bar' to become 
'-L/path/to/fooR/path/to/bar', which obviously doesn't work. The fix is simple 
- eat non-whitespace after the unrecognized option:

env_val = re.sub(r'(^|\s+)-(-|(?!%s))\S+' % arg_name[1], '', env_val)



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1675533&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to