This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author h_koenig
Recipients
Date 2007-08-01.13:56:10
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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< ---
History
Date User Action Args
2007-08-23 14:59:01adminlinkissue1765375 messages
2007-08-23 14:59:01admincreate