Message32578
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< --- |
|
Date |
User |
Action |
Args |
2007-08-23 14:59:01 | admin | link | issue1765375 messages |
2007-08-23 14:59:01 | admin | create | |
|