[Patches] [ python-Patches-758910 ] add thread flags to CXX, too (fixes build on FreeBSD)

SourceForge.net noreply@sourceforge.net
Mon, 23 Jun 2003 06:03:54 -0700


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

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Marc Recht (marc)
>Assigned to: Martin v. Löwis (loewis)
Summary: add thread flags to CXX, too (fixes build on FreeBSD)

Initial Comment:
FreeBSD 5.x fails to link Modules/ccpython.cc:
Python/thread_pthread.h:217: undefined reference to
`pthread_create'
Python/thread_pthread.h:253: undefined reference to
`pthread_detach'

The attached patch tests of the detected CC threads
flag (-pthread, -kthread, -Kpthread or none) also works
for CXX. This fixes the above error for FreeBSD 5.x.
(Tested on today's -current with today's Python 2.3/cvs.)







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

>Comment By: Andrew I MacIntyre (aimacintyre)
Date: 2003-06-23 23:03

Message:
Logged In: YES 
user_id=250749

tests Ok on both FreeBSD 4.8 (which was Ok without the
patch) and FreeBSD 5.1.

If applied, bug #745320 can be closed.

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

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