[Patches] [ python-Patches-758910 ] add thread flags to CXX, too (fixes build on FreeBSD)
SourceForge.net
noreply@sourceforge.net
Sat, 28 Jun 2003 00:47:14 -0700
Patches item #758910, was opened at 2003-06-22 23:56
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=758910&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: 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: Martin v. Löwis (loewis)
Date: 2003-06-28 09:47
Message:
Logged In: YES
user_id=21627
Thanks for the patch. Applied as
configure 1.408
configure.in 1.419
----------------------------------------------------------------------
Comment By: Andrew I MacIntyre (aimacintyre)
Date: 2003-06-23 15: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