[Patches] [ python-Patches-805678 ] Fix linking with shared
libpython
SourceForge.net
noreply at sourceforge.net
Sat Sep 13 12:53:24 EDT 2003
Patches item #805678, was opened at 2003-09-13 18:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=805678&group_id=5470
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Marc Recht (marc)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix linking with shared libpython
Initial Comment:
If Python is build with a shared lib python it installs
a libpython2.3.so.1.0 ( $(INSTSONAME) ). If Python is
not installed into a standard dir (eg. /usr), for
example $HOME/python this library is not found by the
linker.
Meaning this fails: gcc -L$HOME/lib -o myprog -lpython2.3
This fails because there is no "libpython2.3.so".
If Python is installed into standard dirs - on Linux -
this is handled by "ldconfig", but not for non-standard
dirs or other unixes where ldconfig doesn't create the
.so link.
The attached patch fixes this by creating the needed
symlink at install time.
Tested Linux and NetBSD.
The patch is against release23-maint.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=805678&group_id=5470
More information about the Patches
mailing list