[Patches] [ python-Patches-805678 ] Fix linking with shared libpython

SourceForge.net noreply at sourceforge.net
Sat Sep 20 06:51:20 EDT 2003


Patches item #805678, was opened at 2003-09-13 18:53
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=805678&group_id=5470

Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Marc Recht (marc)
Assigned to: Martin v. Löwis (loewis)
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.



----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2003-09-20 12:51

Message:
Logged In: YES 
user_id=21627

Thanks for the patch. Applied as Makefile.pre.in 1.138 and

1.136.6.1

----------------------------------------------------------------------

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