changeset 5573:52e21c06df6a

freebsd::python: fixup configure's LD detection. Fixes build.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Thu, 17 Sep 2009 15:17:44 +0200
parents f92e0b7b400a
children 382a146add09
files gub/specs/python.py
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gub/specs/python.py	Thu Sep 17 11:27:00 2009 +0100
+++ b/gub/specs/python.py	Thu Sep 17 15:17:44 2009 +0200
@@ -103,6 +103,13 @@
 rmdir %(install_root)s/Python24
 ''')
 
+class Python__freebsd (Python):
+    def configure (self):
+        Python.configure (self)
+        self.file_sub ([
+                ('^LDSHARED=.*', 'LDSHARED = $(CC) -shared'),
+                ('BLDSHARED=.*', 'BLDSHARED = $(CC) -shared'),
+                ], '%(builddir)s/Makefile')
 
 class Python__mingw (Python):
     patches = Python.patches + [