[issue4366] cannot find -lpythonX.X when buinding Python on FreeBSD

2010-01-09 Thread Nick Bastin

Nick Bastin  added the comment:

A more appropriate patch should be (for 2.7 trunk - I'm grabbing a checkout of 
3.2 trunk now):

Index: build_ext.py
===
--- build_ext.py(revision 77388)
+++ build_ext.py(working copy)
@@ -280,7 +280,7 @@
 # Python's library directory must be appended to library_dirs
 sysconfig.get_config_var('Py_ENABLE_SHARED')
 if ((sys.platform.startswith('linux') or sys.platform.startswith('gnu')
- or sys.platform.startswith('sunos'))
+ or sys.platform.startswith('sunos') or 
sys.platform.startswith('freebsd'))
 and sysconfig.get_config_var('Py_ENABLE_SHARED')):
 if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
 # building third party extensions


I'm hoping someone will weigh in on whether this should be done on all versions 
of FreeBSD (I don't see why not, but perhaps there is some magic that I don't 
understand in newer versions).

--
keywords: +patch
nosy: +nbastin
Added file: http://bugs.python.org/file15799/4366.diff

___
Python tracker 
<http://bugs.python.org/issue4366>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4366] cannot find -lpythonX.X when buinding Python on FreeBSD

2010-01-09 Thread Nick Bastin

Nick Bastin  added the comment:

NetBSD is netbsd* and DragonFly is dragonfly* (currently dragonfly2, although I 
suspect in this way dragonfly1 was identical, if it ever existed).

--

___
Python tracker 
<http://bugs.python.org/issue4366>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com