Bugs item #1765375, was opened at 2007-08-01 15:56 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=1765375&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: Harald Koenig (h_koenig) Assigned to: Nobody/Anonymous (nobody) Summary: setup.py trashes LDFLAGS Initial Comment: the regexp below will trash the library path in this line in Makefile LDFLAGS = -L/foo/lib -Wl,-rpath,/foo/lib -L/bar/lib -Wl,-rpath,/bar/lib to -L/foo/libWl,-rpath,/foo/lib -L/bar/libWl,-rpath,/bar/lib which renders this library paths broken and useless for building python modules. the following patch seems to work fine for my setup on various plattforms: --- 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< --- --- Python-2.5.1/setup.py~ 2007-08-01 15:19:27.000000000 +0200 +++ Python-2.5.1/setup.py 2007-08-01 15:19:48.000000000 +0200 @@ -267,7 +267,7 @@ # 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 --- 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< --- ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1765375&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com