[Patches] [ python-Patches-752671 ] NetBSD needs to link libintl

SourceForge.net noreply@sourceforge.net
Fri, 13 Jun 2003 22:47:50 -0700


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

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Marc Recht (marc)
Assigned to: Nobody/Anonymous (nobody)
Summary: NetBSD needs to link libintl

Initial Comment:
On NetBSD the libintl.h is found, but the libintl to linked. 
Therefore the locale module fails to link. The attached patch 
changes configure.in to check for textdomain in libintl and if it's 
found it adds libintl to $LIBS. 

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

>Comment By: Martin v. Löwis (loewis)
Date: 2003-06-14 07:47

Message:
Logged In: YES 
user_id=21627

Linking python with libintl is incorrect as it is needed for
_locale.so. Instead, you should come up with a patch for
setup.py, and perhaps a (comment) patch for
Modules/Setup.dist. While the patch probably "works" on most
systems, it fails when libintl is needed and is a non-shared
library (libintl.a).

It would be IMO safe to assume that -lintl is needed if
libintl.h is present; if you want to, you can still perform
a test for textdomain in configure, and communicate its
result to setup.py through a #define.

P.S. There is no need to compress 600 byte attachments, IMO.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=752671&group_id=5470