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

SourceForge.net noreply@sourceforge.net
Sun, 22 Jun 2003 14:56:05 -0700


Patches item #758910, was opened at 2003-06-22 23:56
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=758910&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Marc Recht (marc)
Assigned to: Nobody/Anonymous (nobody)
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.)







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

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